mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-26 09:02:04 +03:00
Move ShowInTaskbar and RunningCoreType to AppManager
This commit is contained in:
@@ -253,7 +253,7 @@ public class MainWindowViewModel : MyReactiveObject
|
||||
|
||||
private async Task Init()
|
||||
{
|
||||
_config.UiItem.ShowInTaskbar = true;
|
||||
AppManager.Instance.ShowInTaskbar = true;
|
||||
|
||||
//await ConfigHandler.InitBuiltinRouting(_config);
|
||||
await ConfigHandler.InitBuiltinDNS(_config);
|
||||
@@ -306,7 +306,7 @@ public class MainWindowViewModel : MyReactiveObject
|
||||
|
||||
private async Task UpdateStatisticsHandler(ServerSpeedItem update)
|
||||
{
|
||||
if (!_config.UiItem.ShowInTaskbar)
|
||||
if (!AppManager.Instance.ShowInTaskbar)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -560,7 +560,7 @@ public class MainWindowViewModel : MyReactiveObject
|
||||
});
|
||||
AppEvents.TestServerRequested.Publish();
|
||||
|
||||
var showClashUI = _config.IsRunningCore(ECoreType.sing_box);
|
||||
var showClashUI = AppManager.Instance.IsRunningCore(ECoreType.sing_box);
|
||||
if (showClashUI)
|
||||
{
|
||||
AppEvents.ProxiesReloadRequested.Publish();
|
||||
|
||||
Reference in New Issue
Block a user