-Mod: Show (short) version tag in release versions
-Mod: Show long version tag in builds based on a release (to separate them from real releases)
This commit is contained in:
1 parent
78592f17a9
commit
02126560ca
2 files changed
+4
-5
No files matched your search
@@ -220,9 +220,10 @@ namespace Vocaluxe.Base
|
||||
{
|
||||
string version = _Version + " (" + _Arch + ")";
|
||||
|
||||
if (VersionRevision != ERevision.Release)
|
||||
string gitversion = Application.ProductVersion;
|
||||
|
||||
if (VersionRevision != ERevision.Release || gitversion.Split('-')[1] != "0")
|
||||
{
|
||||
string gitversion = Application.ProductVersion;
|
||||
version += " " + _GetVersionStatus() + String.Format(" ({0})", gitversion);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,9 +54,7 @@ namespace Vocaluxe.Screens
|
||||
base.LoadTheme(xmlPath);
|
||||
|
||||
_Texts[_TextRelease].Text = CSettings.GetFullVersionText();
|
||||
// ReSharper disable ConditionIsAlwaysTrueOrFalse
|
||||
_Texts[_TextRelease].Visible = CSettings.VersionRevision != ERevision.Release;
|
||||
// ReSharper restore ConditionIsAlwaysTrueOrFalse
|
||||
_Texts[_TextRelease].Visible = true;
|
||||
_Statics[_StaticWarningProfiles].Visible = false;
|
||||
_Texts[_TextWarningProfiles].Visible = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user