Warn before software closed; fix bug on first run

Also put settings into proper dir
This commit is contained in:
2026-02-24 19:38:20 +09:00
parent bc5ce3e311
commit 2a8bbf76bf
14 changed files with 268 additions and 21 deletions
+8
View File
@@ -0,0 +1,8 @@
using System.Threading.Tasks;
namespace MayShow.Interfaces;
interface ICanCheckShutdown
{
Task<bool> CheckIsSafeToShutdown();
}
+5 -6
View File
@@ -1,10 +1,9 @@
using MayShow.ViewModels;
namespace MayShow.Interfaces
namespace MayShow.Interfaces;
interface IChangeViewModel
{
interface IChangeViewModel
{
void PushViewModel(BaseViewModel model);
void PopViewModel();
}
void PushViewModel(BaseViewModel model);
void PopViewModel();
}
+4 -5
View File
@@ -1,9 +1,8 @@
using Avalonia.Controls;
namespace MayShow.Interfaces
namespace MayShow.Interfaces;
interface ITopLevelGrabber
{
interface ITopLevelGrabber
{
TopLevel GetTopLevel();
}
TopLevel GetTopLevel();
}