Skip to content

Commit ce2c742

Browse files
committed
Added tooltips to window commands
1 parent 8fb80b5 commit ce2c742

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

ZuneModdingHelper/App.xaml.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ public static bool CheckIfNewerVersion(string otherStr)
1818
{
1919
int idxSplit = otherStr.IndexOf('-');
2020
Version otherNum = new(otherStr[..idxSplit]);
21-
//string otherStatus = otherStr[(idxSplit + 1)..];
21+
string otherStatus = otherStr[(idxSplit + 1)..];
2222

2323
// TODO: This assumes that the VersionStatus is "alpha"
24-
//bool isNotAlpha = otherStatus != VersionStatus;
25-
bool isNotAlpha = !otherStr.EndsWith(VersionStatus);
24+
bool isNotAlpha = otherStatus != VersionStatus;
2625
bool isNewer = otherNum > VersionNum;
2726
return isNotAlpha || isNewer;
2827
}

ZuneModdingHelper/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
<mah:MetroWindow.RightWindowCommands>
1414
<mah:WindowCommands>
15-
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" Click="UpdatesButton_Click">
15+
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" ToolTip="Check for updates" Click="UpdatesButton_Click">
1616
<mah:FontIcon Glyph="&#xE895;" FontFamily="Segoe MDL2 Assets" FontSize="18"/>
1717
</Button>
18-
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" Click="AboutButton_Click">
18+
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" ToolTip="About" Click="AboutButton_Click">
1919
<mah:FontIcon Glyph="&#xE946;" FontFamily="Segoe MDL2 Assets"/>
2020
</Button>
2121
</mah:WindowCommands>

0 commit comments

Comments
 (0)