mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Added tooltips to window commands
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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="" 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="" FontFamily="Segoe MDL2 Assets"/>
|
||||
</Button>
|
||||
</mah:WindowCommands>
|
||||
|
||||
Reference in New Issue
Block a user