From ce2c7423193d35bd1a776311119a9e4eab601cc8 Mon Sep 17 00:00:00 2001 From: Joshua Askharoun Date: Mon, 26 Apr 2021 22:24:33 -0500 Subject: [PATCH] Added tooltips to window commands --- ZuneModdingHelper/App.xaml.cs | 5 ++--- ZuneModdingHelper/MainWindow.xaml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ZuneModdingHelper/App.xaml.cs b/ZuneModdingHelper/App.xaml.cs index 4792455..ab0fae4 100644 --- a/ZuneModdingHelper/App.xaml.cs +++ b/ZuneModdingHelper/App.xaml.cs @@ -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; } diff --git a/ZuneModdingHelper/MainWindow.xaml b/ZuneModdingHelper/MainWindow.xaml index 7b0ed32..b7ebec6 100644 --- a/ZuneModdingHelper/MainWindow.xaml +++ b/ZuneModdingHelper/MainWindow.xaml @@ -12,10 +12,10 @@ - -