Skip to content

Commit 09a0872

Browse files
committed
Allow version and build number to be shown (fix #3314)
1 parent 7eb5d14 commit 09a0872

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/UniGetUI/MainWindow.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public MainWindow()
7171
LoadTrayMenu();
7272
ApplyTheme();
7373

74+
if (Settings.Get("ShowVersionNumberOnTitlebar"))
75+
{
76+
AddToSubtitle(CoreTools.Translate("version {0} (build number: {1})", CoreData.VersionName, CoreData.BuildNumber));
77+
}
78+
7479
if (CoreTools.IsAdministrator())
7580
{
7681
AddToSubtitle(CoreTools.Translate("[RAN AS ADMINISTRATOR]"));

src/UniGetUI/Pages/SettingsPages/GeneralPages/Experimental.xaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
VerticalContentAlignment="Center">
2121
<StackPanel Orientation="Vertical">
2222

23+
<widgets:CheckboxCard
24+
x:Name="ShowVersionNumberOnTitlebar"
25+
CornerRadius="8"
26+
SettingName="ShowVersionNumberOnTitlebar"
27+
StateChanged="ShowRestartBanner"
28+
Text="Show UniGetUI's version and build number on the titlebar." />
29+
30+
<UserControl Height="16" />
31+
2332
<widgets:CheckboxCard
2433
x:Name="DisableWidgetsApi"
2534
BorderThickness="1,1,1,0"
@@ -35,8 +44,6 @@
3544
StateChanged="ShowRestartBanner"
3645
Text="Wait for the device to be connected to the internet before attempting to do tasks that require internet connectivity." />
3746

38-
<UserControl Height="16" />
39-
4047
<widgets:CheckboxCard
4148
CornerRadius="8"
4249
ForceInversion="True"
@@ -48,7 +55,7 @@
4855
<widgets:CheckboxCard
4956
x:Name="DisableUniGetUIElevatorToggle"
5057
BorderThickness="1,1,1,0"
51-
CornerRadius="8,8,0,0"
58+
CornerRadius="8"
5259
SettingName="DisableUniGetUIElevator"
5360
StateChanged="ShowRestartBanner"
5461
Text="Enable the new UniGetUI-Branded UAC Elevator" />

0 commit comments

Comments
 (0)