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(false, msg);
ShowMsg(true, $"{node.GetSummary()}"); ShowMsg(true, $"{node.GetSummary()}");
CoreStop(); CoreStop();
if (_config.tunModeItem.enableTun)
{
Thread.Sleep(1000);
}
CoreStart(node); CoreStart(node);
//In tun mode, do a delay check and restart the core //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); var running = ConfigHandler.GetDefaultServer(_config);
if (running != null) if (running != null)
{ {
var runningSummary = running.GetSummary(); RunningServerDisplay =
RunningServerDisplay = $"{ResUI.menuServers}:{runningSummary}"; RunningServerToolTipText = running.GetSummary();
RunningServerToolTipText = runningSummary;
} }
else else
{ {
RunningServerDisplay = ResUI.CheckServerSettings; RunningServerDisplay =
RunningServerToolTipText = ResUI.CheckServerSettings; RunningServerToolTipText = ResUI.CheckServerSettings;
} }
})); }));

Loading…
Cancel
Save