Skip to content

Commit

Permalink
Remove ver and branch indicator in TrayIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
bagusnl committed Apr 6, 2024
1 parent 9a4a44f commit 983d1b4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CollapseLauncher/XAMLs/MainApp/TrayIcon.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public sealed partial class TrayIcon
#region Main
public TrayIcon()
{
this.InitializeComponent();
InitializeComponent();

string instanceIndicator = "";
var instanceIndicator = "";
var instanceCount = MainEntryPoint.InstanceCount;

if (instanceCount > 1)
Expand All @@ -46,19 +46,17 @@ public TrayIcon()
CollapseTaskbar.SetValue(TaskbarIcon.CustomNameProperty, $"Collapse Launcher{instanceIndicator}");
}

// ReSharper disable once UnusedVariable
var isPreview = LauncherConfig.IsPreview;
// Bug in W10: Weird border issue
// Verdict: disable SecondWindow ContextMenuMode, use classic.
// if (isPreview) CollapseTaskbar.ContextMenuMode = ContextMenuMode.SecondWindow;
#if DEBUG
CollapseTaskbar.ToolTipText =
$"Collapse Launcher v{AppCurrentVersion.VersionString}d - Commit {ThisAssembly.Git.Commit}{instanceIndicator}\r\n" +
$"Collapse Launcher{instanceIndicator}\r\n" +
$"{_popupHelp1}\r\n" +
$"{_popupHelp2}";
#else
CollapseTaskbar.ToolTipText =
$"Collapse Launcher v{AppCurrentVersion.VersionString} {(isPreview ? _preview : _stable)}{instanceIndicator}\r\n" +
$"Collapse Launcher{instanceIndicator}\r\n" +
$"{_popupHelp1}\r\n" +
$"{_popupHelp2}";
#endif
Expand Down

0 comments on commit 983d1b4

Please sign in to comment.