This commit is contained in:
2dust
2022-10-25 16:51:34 +08:00
parent 6f8c6e31ef
commit 6de1c11c2a
2 changed files with 7 additions and 1 deletions

View File

@@ -516,6 +516,7 @@ namespace clashN.Handler
{
try
{
if(File.Exists(Utils.GetConfigPath(config.profileItems[index].address)))
{
File.Delete(Utils.GetConfigPath(config.profileItems[index].address));
}

View File

@@ -25,6 +25,7 @@ namespace clashN.ViewModels
private NoticeHandler? _noticeHandler;
private StatisticsHandler? statistics;
private readonly PaletteHelper _paletteHelper = new PaletteHelper();
private bool blFirst = true;
#region Views
//public DashboardView GetDashboardView { get; }
@@ -111,6 +112,7 @@ namespace clashN.ViewModels
Application.Current.Dispatcher.Invoke((Action)(() =>
{
ShowHideWindow(false);
blFirst = false;
}));
});
@@ -187,7 +189,10 @@ namespace clashN.ViewModels
return;
}
}
ShowHideWindow(true);
if (!blFirst)
{
ShowHideWindow(true);
}
Locator.Current.GetService<ProfilesViewModel>()?.AddProfilesViaClipboard(true);
}));