Skip to content

Commit eec1a7f

Browse files
committed
Update SystemTrayIcon.cs
1 parent 1bcdc80 commit eec1a7f

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/Files.App/Utils/Taskbar/SystemTrayIcon.cs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,16 @@ public sealed class SystemTrayIcon : IDisposable
2727

2828
// Fields
2929

30-
private readonly static Guid _trayIconGuid = new(
31-
#if DEBUG
32-
"684F2832-AC2B-4630-98C2-73D6AEBD4001"
33-
#elif PREVIEW
34-
"684F2832-AC2B-4630-98C2-73D6AEBD4002"
35-
#elif STABLE
36-
"684F2832-AC2B-4630-98C2-73D6AEBD4003"
37-
#elif STORE
38-
"684F2832-AC2B-4630-98C2-73D6AEBD4004"
39-
#else
40-
"684F2832-AC2B-4630-98C2-73D6AEBD4005"
41-
#endif
42-
);
30+
private readonly static Guid _trayIconGuid = AppLifecycleHelper.AppEnvironment switch
31+
{
32+
AppEnvironment.Dev => new Guid("684F2832-AC2B-4630-98C2-73D6AEBD4001"),
33+
AppEnvironment.SideloadPreview => new Guid("684F2832-AC2B-4630-98C2-73D6AEBD4002"),
34+
AppEnvironment.StorePreview => new Guid("684F2832-AC2B-4630-98C2-73D6AEBD4003"),
35+
AppEnvironment.SideloadStable => new Guid("684F2832-AC2B-4630-98C2-73D6AEBD4004"),
36+
AppEnvironment.StoreStable => new Guid("684F2832-AC2B-4630-98C2-73D6AEBD4005"),
37+
_ => new Guid("684F2832-AC2B-4630-98C2-73D6AEBD4001")
38+
};
39+
4340

4441
private readonly SystemTrayIconWindow _IconWindow;
4542

0 commit comments

Comments
 (0)