Skip to content

Commit dbd41fb

Browse files
committed
Replace --no-tray-icon with --tray-icon (tray icon support disabled by default)
GH-16
1 parent 99bb7a3 commit dbd41fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R7.Webmate.Xwt/MainWindow.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public MainWindow ()
1919
{
2020
Icon = IconHelper.GetAppIcon ();
2121

22-
if (!Program.CmdlineArgs.NoTrayIcon) {
22+
if (Program.CmdlineArgs.TrayIcon) {
2323
InitStatusIcon ();
2424
}
2525

R7.Webmate.Xwt/Program.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ public class CmdlineArgs
99
{
1010
public bool Silent { get; protected set; }
1111

12-
public bool NoTrayIcon { get; protected set; }
12+
public bool TrayIcon { get; protected set; }
1313

1414
public CmdlineArgs (string [] args)
1515
{
1616
foreach (var arg in args) {
1717
if (arg == "--silent") {
1818
Silent = true;
1919
}
20-
if (arg == "--no-tray-icon") {
21-
NoTrayIcon = true;
20+
if (arg == "--tray-icon") {
21+
TrayIcon = true;
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)