mirror of https://github.com/2dust/v2rayN
Merge pull request #4299 from hxdhttk/hxdhttk/notifyUpd
Update the H.NotifyIcon to show default system tooltip for sys tray icon.pull/4385/head^2
commit
2652beed88
|
@ -210,8 +210,8 @@ namespace v2rayN.ViewModels
|
|||
[Reactive]
|
||||
public string RunningServerDisplay { get; set; }
|
||||
|
||||
//[Reactive]
|
||||
//public string RunningServerToolTipText { get; set; }
|
||||
[Reactive]
|
||||
public string RunningServerToolTipText { get; set; }
|
||||
|
||||
[Reactive]
|
||||
public string RunningInfoDisplay { get; set; }
|
||||
|
@ -849,12 +849,12 @@ namespace v2rayN.ViewModels
|
|||
{
|
||||
var runningSummary = running.GetSummary();
|
||||
RunningServerDisplay = $"{ResUI.menuServers}:{runningSummary}";
|
||||
//RunningServerToolTipText = runningSummary;
|
||||
RunningServerToolTipText = runningSummary;
|
||||
}
|
||||
else
|
||||
{
|
||||
RunningServerDisplay = ResUI.CheckServerSettings;
|
||||
//RunningServerToolTipText = ResUI.CheckServerSettings;
|
||||
RunningServerToolTipText = ResUI.CheckServerSettings;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -751,6 +751,7 @@
|
|||
<tb:TaskbarIcon
|
||||
x:Name="tbNotify"
|
||||
IconSource="/v2rayN.ico"
|
||||
ToolTipText="v2rayN"
|
||||
NoLeftClickDelay="True">
|
||||
<tb:TaskbarIcon.ContextMenu>
|
||||
<ContextMenu Style="{StaticResource DefContextMenu}">
|
||||
|
|
|
@ -176,7 +176,7 @@ namespace v2rayN.Views
|
|||
this.BindCommand(ViewModel, vm => vm.SubUpdateViaProxyCmd, v => v.menuSubUpdateViaProxy2).DisposeWith(disposables);
|
||||
|
||||
this.OneWayBind(ViewModel, vm => vm.NotifyIcon, v => v.tbNotify.Icon).DisposeWith(disposables);
|
||||
//this.OneWayBind(ViewModel, vm => vm.RunningServerToolTipText, v => v.tbNotify.ToolTipText).DisposeWith(disposables);
|
||||
this.OneWayBind(ViewModel, vm => vm.RunningServerToolTipText, v => v.tbNotify.ToolTipText).DisposeWith(disposables);
|
||||
this.OneWayBind(ViewModel, vm => vm.NotifyLeftClickCmd, v => v.tbNotify.LeftClickCommand).DisposeWith(disposables);
|
||||
this.OneWayBind(ViewModel, vm => vm.AppIcon, v => v.Icon).DisposeWith(disposables);
|
||||
//this.OneWayBind(ViewModel, vm => vm.BlShowTrayTip, v => v.borTrayToolTip.Visibility).DisposeWith(disposables);
|
||||
|
|
Loading…
Reference in New Issue