complete
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Data;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
using ModpackUpdater.Apps.Manager.Api;
|
||||
@@ -22,6 +23,7 @@ public partial class MainWindow : Window, IMainApi
|
||||
public MainWindowViewModel Model { get; } = new();
|
||||
Window IMainApi.MainWindow => this;
|
||||
public IMainApi MainApi => this;
|
||||
public bool HasClosed { get; private set; }
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
@@ -110,6 +112,11 @@ public partial class MainWindow : Window, IMainApi
|
||||
LoadRecentWorkspaces();
|
||||
}
|
||||
|
||||
private void Window_OnClosed(object? sender, EventArgs e)
|
||||
{
|
||||
HasClosed = true;
|
||||
}
|
||||
|
||||
private async void MenuItemNewWorkspaceItem_Click(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is not MenuItem item || item.Tag is not WorkspaceFeature feature)
|
||||
|
||||
Reference in New Issue
Block a user