Browse Source

Improve

pull/4711/head
2dust 10 months ago
parent
commit
11106937a3
  1. 6
      v2rayN/v2rayN/Handler/CoreHandler.cs
  2. 7
      v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs

6
v2rayN/v2rayN/Handler/CoreHandler.cs

@ -45,6 +45,12 @@ namespace v2rayN.Handler
ShowMsg(false, msg);
ShowMsg(true, $"{node.GetSummary()}");
CoreStop();
if (_config.tunModeItem.enableTun)
{
Thread.Sleep(1000);
}
CoreStart(node);
//In tun mode, do a delay check and restart the core

7
v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs

@ -862,13 +862,12 @@ namespace v2rayN.ViewModels
var running = ConfigHandler.GetDefaultServer(_config);
if (running != null)
{
var runningSummary = running.GetSummary();
RunningServerDisplay = $"{ResUI.menuServers}:{runningSummary}";
RunningServerToolTipText = runningSummary;
RunningServerDisplay =
RunningServerToolTipText = running.GetSummary();
}
else
{
RunningServerDisplay = ResUI.CheckServerSettings;
RunningServerDisplay =
RunningServerToolTipText = ResUI.CheckServerSettings;
}
}));

Loading…
Cancel
Save