Skip to content

Commit f947f63

Browse files
committed
Display or hide the main window menu in the tray and move it to the top
1 parent fefa7de commit f947f63

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v2rayN/v2rayN.Desktop/App.axaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
77
xmlns:semi="https://irihi.tech/semi"
88
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
9-
x:DataType="vms:StatusBarViewModel"
109
Name="v2rayN"
10+
x:DataType="vms:StatusBarViewModel"
1111
RequestedThemeVariant="Default">
1212
<Application.Styles>
1313
<semi:SemiTheme />
@@ -32,6 +32,8 @@
3232
ToolTipText="{Binding RunningServerToolTipText}">
3333
<TrayIcon.Menu>
3434
<NativeMenu>
35+
<NativeMenuItem Command="{Binding NotifyLeftClickCmd}" Header="{x:Static resx:ResUI.menuShowOrHideMainWindow}" />
36+
<NativeMenuItemSeparator />
3537
<NativeMenuItem
3638
Command="{Binding SystemProxyClearCmd}"
3739
Header="{x:Static resx:ResUI.menuSystemProxyClear}"
@@ -55,13 +57,11 @@
5557
ToggleType="Radio" />
5658
<NativeMenuItemSeparator />
5759
<NativeMenuItem Click="MenuAddServerViaClipboardClick" Header="{x:Static resx:ResUI.menuAddServerViaClipboard}" />
58-
<NativeMenuItem Header="{x:Static resx:ResUI.menuAddServerViaScan}" IsVisible="False" />
5960
<NativeMenuItem Command="{Binding SubUpdateCmd}" Header="{x:Static resx:ResUI.menuSubUpdate}" />
6061
<NativeMenuItem Command="{Binding SubUpdateViaProxyCmd}" Header="{x:Static resx:ResUI.menuSubUpdateViaProxy}" />
6162
<NativeMenuItemSeparator />
6263
<NativeMenuItem Command="{Binding CopyProxyCmdToClipboardCmd}" Header="{x:Static resx:ResUI.menuCopyProxyCmdToClipboard}" />
6364
<NativeMenuItemSeparator />
64-
<NativeMenuItem Command="{Binding NotifyLeftClickCmd}" Header="{x:Static resx:ResUI.menuShowOrHideMainWindow}" />
6565
<NativeMenuItem Click="MenuExit_Click" Header="{x:Static resx:ResUI.menuExit}" />
6666
</NativeMenu>
6767
</TrayIcon.Menu>

0 commit comments

Comments
 (0)