Skip to content

Commit c8d1d88

Browse files
committed
add version to main window title, closes #38
1 parent a8f6de9 commit c8d1d88

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ArcExplorer/ViewModels/MainWindowViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace ArcExplorer.ViewModels
1515
{
1616
public class MainWindowViewModel : ViewModelBase
1717
{
18+
// TODO: In the future the version could be loaded from a file updated by a build script.
19+
public string Title { get; } = "Arc Explorer v1.4.0";
20+
1821
public AvaloniaList<FileGridItem> Files
1922
{
2023
get => files;

ArcExplorer/Views/MainWindow.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
WindowStartupLocation="CenterScreen"
1111
x:Class="ArcExplorer.Views.MainWindow"
1212
Icon="/Assets/arc.ico"
13-
Title="ARC Explorer"
13+
Title="{Binding Title}"
1414
Name="thisWindow">
1515
<Window.Resources>
1616
<converters:IconKeyDrawingConverter x:Key="iconKeyDrawingConverter" />

0 commit comments

Comments
 (0)