bug fixes

This commit is contained in:
2dust
2023-04-19 17:43:43 +08:00
parent ab6afa3b1a
commit 69900d9bd6

View File

@@ -25,7 +25,6 @@ namespace ClashN.ViewModels
private NoticeHandler? _noticeHandler; private NoticeHandler? _noticeHandler;
private StatisticsHandler? statistics; private StatisticsHandler? statistics;
private readonly PaletteHelper _paletteHelper = new PaletteHelper(); private readonly PaletteHelper _paletteHelper = new PaletteHelper();
private bool blFirst = true;
#region Views #region Views
@@ -138,7 +137,6 @@ namespace ClashN.ViewModels
Application.Current.Dispatcher.Invoke((Action)(() => Application.Current.Dispatcher.Invoke((Action)(() =>
{ {
ShowHideWindow(false); ShowHideWindow(false);
blFirst = false;
})); }));
}); });
} }
@@ -222,8 +220,7 @@ namespace ClashN.ViewModels
} }
} }
if (!blFirst) ShowHideWindow(true);
ShowHideWindow(true);
Locator.Current.GetService<ProfilesViewModel>()?.AddProfilesViaClipboard(true); Locator.Current.GetService<ProfilesViewModel>()?.AddProfilesViaClipboard(true);
})); }));