mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-05-03 05:16:29 +03:00
minor fixes in MainWindowViewModel
This commit is contained in:
@@ -2,16 +2,18 @@
|
|||||||
using CommunityToolkit.Mvvm.Input;
|
using CommunityToolkit.Mvvm.Input;
|
||||||
using KeyKeeper.Views;
|
using KeyKeeper.Views;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace KeyKeeper.ViewModels;
|
namespace KeyKeeper.ViewModels;
|
||||||
public partial class MainWindowViewModel : ViewModelBase
|
public partial class MainWindowViewModel : ViewModelBase
|
||||||
{
|
{
|
||||||
public string Greeting { get; } = "Welcome to Avalonia!";
|
public string Greeting { get; } = "Welcome to KeyKeeper!";
|
||||||
|
|
||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
private async void OpenSettings()
|
private async Task OpenSettings()
|
||||||
{
|
{
|
||||||
var settingsWindow = new SettingsWindow();
|
var settingsWindow = new SettingsWindow();
|
||||||
await settingsWindow.ShowDialog(GetMainWindow());
|
await settingsWindow.ShowDialog(GetMainWindow()!);
|
||||||
}
|
}
|
||||||
private static Window? GetMainWindow()
|
private static Window? GetMainWindow()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user