bug fix
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user