Skip to content

Commit

Permalink
Always display the "tool version" textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
iminashi committed Dec 21, 2024
1 parent 12c9e48 commit c30517c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
3 changes: 3 additions & 0 deletions samples/DLCBuilder.Domain/AppVersion.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ let current =

/// A three part version string prefixed with "v".
let versionString = $"v{current.ToString(3)}"

/// "DLC Builder vX.X.X"
let programNameWithVersion = $"DLC Builder {versionString}"
2 changes: 1 addition & 1 deletion samples/DLCBuilder.Domain/Building/BuildConfig.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let create buildType config directoryForPhraseLevels project platforms =
buildType = Test && not config.GenerateDD

{ Platforms = platforms
BuilderVersion = $"DLC Builder {AppVersion.versionString}"
BuilderVersion = AppVersion.programNameWithVersion
Author = project.Author |> Option.defaultValue config.CharterName
AppId = appId
GenerateDD = not disableDDGeneration
Expand Down
28 changes: 14 additions & 14 deletions samples/DLCBuilder/Overlays/AdditionalMetaDataEditor.fs
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ let view dispatch state =
()

// Build Tool Version
match state.ImportedBuildToolVersion with
| Some version ->
locText "BuildToolVersion" [
Grid.row 2
TextBlock.verticalAlignment VerticalAlignment.Center
]
let version =
state.ImportedBuildToolVersion
|> Option.defaultValue AppVersion.programNameWithVersion

FixedTextBox.create [
Grid.row 2
Grid.column 1
FixedTextBox.text version
FixedTextBox.isReadOnly true
]
| None ->
()
locText "BuildToolVersion" [
Grid.row 2
TextBlock.verticalAlignment VerticalAlignment.Center
]

FixedTextBox.create [
Grid.row 2
Grid.column 1
FixedTextBox.text version
FixedTextBox.isReadOnly true
]
]
]
]
Expand Down

0 comments on commit c30517c

Please sign in to comment.