mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-21 21:36:10 +00:00
Fix displayed Version
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -250,3 +250,6 @@ paket-files/
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# Deploy util
|
||||
makeUpdate.py
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace PckStudio.Forms
|
||||
#else
|
||||
buildConfig = "unknown";
|
||||
#endif
|
||||
buildLabel.Text = $"Verion: {Application.ProductVersion}\nBuild Config: {buildConfig}\nBranch: {CommitInfo.BranchName}@{CommitInfo.CommitHash}";
|
||||
buildLabel.Text = $"Verion: {ApplicationScope.CurrentVersion}\nBuild Config: {buildConfig}\nBranch: {CommitInfo.BranchName}@{CommitInfo.CommitHash}";
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
|
||||
@@ -21,6 +21,8 @@ namespace PckStudio.Internal.App
|
||||
private static Image[] _entityImages;
|
||||
public static Image[] EntityImages => _entityImages;
|
||||
|
||||
public static Version CurrentVersion { get; } = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
internal static void Initialize()
|
||||
{
|
||||
Profiler.Start();
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace PckStudio
|
||||
|
||||
Text = Application.ProductName;
|
||||
|
||||
labelVersion.Text = $"{Application.ProductName}: {Application.ProductVersion}";
|
||||
labelVersion.Text = $"{Application.ProductName}: {ApplicationScope.CurrentVersion}";
|
||||
ChangelogRichTextBox.Text = Resources.CHANGELOG;
|
||||
|
||||
pckFileTypeHandler = new Dictionary<PckAssetType, Action<PckAsset>>(15)
|
||||
|
||||
Reference in New Issue
Block a user