bug fixes

This commit is contained in:
Space Time
2024-01-01 21:30:06 +08:00
parent 936602eb0c
commit 3023971cf8

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
@@ -137,6 +138,7 @@ namespace ClashN.ViewModels
Application.Current.Dispatcher.Invoke((Action)(() =>
{
ShowHideWindow(false);
blFirst = false;
}));
});
}
@@ -220,6 +222,7 @@ namespace ClashN.ViewModels
}
}
if (!blFirst)
ShowHideWindow(true);
Locator.Current.GetService<ProfilesViewModel>()?.AddProfilesViaClipboard(true);