Added tooltips to window commands

This commit is contained in:
Joshua Askharoun
2021-04-26 22:24:33 -05:00
parent 8fb80b55e6
commit ce2c742319
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -18,11 +18,10 @@ namespace ZuneModdingHelper
{
int idxSplit = otherStr.IndexOf('-');
Version otherNum = new(otherStr[..idxSplit]);
//string otherStatus = otherStr[(idxSplit + 1)..];
string otherStatus = otherStr[(idxSplit + 1)..];
// TODO: This assumes that the VersionStatus is "alpha"
//bool isNotAlpha = otherStatus != VersionStatus;
bool isNotAlpha = !otherStr.EndsWith(VersionStatus);
bool isNotAlpha = otherStatus != VersionStatus;
bool isNewer = otherNum > VersionNum;
return isNotAlpha || isNewer;
}
+2 -2
View File
@@ -12,10 +12,10 @@
<mah:MetroWindow.RightWindowCommands>
<mah:WindowCommands>
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" Click="UpdatesButton_Click">
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" ToolTip="Check for updates" Click="UpdatesButton_Click">
<mah:FontIcon Glyph="&#xE895;" FontFamily="Segoe MDL2 Assets" FontSize="18"/>
</Button>
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" Click="AboutButton_Click">
<Button Style="{StaticResource MahApps.Styles.Button.WindowCommands}" ToolTip="About" Click="AboutButton_Click">
<mah:FontIcon Glyph="&#xE946;" FontFamily="Segoe MDL2 Assets"/>
</Button>
</mah:WindowCommands>