@@ -265,6 +265,7 @@ Public Class MainForm
265
265
266
266
Public DarkThemeIndex As Integer = 0 ' Color theme index for dark color scheme
267
267
Public LightThemeIndex As Integer = 1 ' Color theme index for light color scheme
268
+ Public ShowDateAndTime As Boolean = True ' Whether to show the date and time on the project view
268
269
269
270
Friend NotInheritable Class NativeMethods
270
271
@@ -713,6 +714,7 @@ Public Class MainForm
713
714
LoadDTSettings(1)
714
715
End If
715
716
imgStatus = 0
717
+ TimeLabel.Visible = ShowDateAndTime
716
718
ChangeImgStatus()
717
719
If DismExe <> "" Then
718
720
DynaLog.LogMessage("Checking version of DISM executable...")
@@ -1280,6 +1282,7 @@ Public Class MainForm
1280
1282
ProgressPanelStyle = CInt(PersKey.GetValue("SecondaryProgressPanelStyle"))
1281
1283
AllCaps = (CInt(PersKey.GetValue("AllCaps")) = 1)
1282
1284
ExpandedProgressPanel = (CInt(PersKey.GetValue("ExpandedProgressPanel")) = 1)
1285
+ ShowDateAndTime = (CInt(PersKey.GetValue("ShowDateAndTime")) = 1)
1283
1286
ProjectView.Visible = True
1284
1287
PersKey.Close()
1285
1288
Dim LogKey As RegistryKey = Key.OpenSubKey("Logs")
@@ -1463,6 +1466,11 @@ Public Class MainForm
1463
1466
ElseIf DTSettingForm.RichTextBox1.Text.Contains("ExpandedProgressPanel=1") Then
1464
1467
ExpandedProgressPanel = 1
1465
1468
End If
1469
+ If DTSettingForm.RichTextBox1.Text.Contains("ShowDateAndTime=0") Then
1470
+ ShowDateAndTime = False
1471
+ ElseIf DTSettingForm.RichTextBox1.Text.Contains("ShowDateAndTime=1") Then
1472
+ ShowDateAndTime = True
1473
+ End If
1466
1474
ProjectView.Visible = True
1467
1475
' Detect log file level: 1 - Errors only
1468
1476
' 2 - Errors and warnings
@@ -1694,6 +1702,7 @@ Public Class MainForm
1694
1702
"SecondaryProgressPanelStyle= " & ProgressPanelStyle & CrLf &
1695
1703
"AllCaps = " & AllCaps & CrLf &
1696
1704
"ExpandedProgressPanel = " & ExpandedProgressPanel & CrLf &
1705
+ "ShowDateAndTime = " & ShowDateAndTime & CrLf &
1697
1706
"LogFile = " & Quote & LogFile & Quote & CrLf &
1698
1707
"LogLevel = " & LogLevel & CrLf &
1699
1708
"AutoLogs = " & AutoLogs & CrLf &
@@ -4578,9 +4587,9 @@ Public Class MainForm
4578
4587
DTSettingForm.RichTextBox2.AppendText(CrLf & "LogFontBold=0")
4579
4588
DTSettingForm.RichTextBox2.AppendText(CrLf & "SecondaryProgressPanelStyle=1")
4580
4589
DTSettingForm.RichTextBox2.AppendText(CrLf & "AllCaps=0")
4581
- DTSettingForm.RichTextBox2.AppendText(CrLf & "NewDesign=1")
4582
4590
DTSettingForm.RichTextBox2.AppendText(CrLf & "ColorSchemes=0")
4583
4591
DTSettingForm.RichTextBox2.AppendText(CrLf & "ExpandedProgressPanel=1")
4592
+ DTSettingForm.RichTextBox2.AppendText(CrLf & "ShowDateAndTime=1")
4584
4593
DTSettingForm.RichTextBox2.AppendText(CrLf & CrLf & "[Logs]" & CrLf)
4585
4594
DTSettingForm.RichTextBox2.AppendText("LogFile=" & Quote & "{common:WinDir}\Logs\DISM\DISM.log" & Quote)
4586
4595
DTSettingForm.RichTextBox2.AppendText(CrLf & "LogLevel=3")
@@ -4652,9 +4661,9 @@ Public Class MainForm
4652
4661
PersKey.SetValue("LogFontBold", 0, RegistryValueKind.DWord)
4653
4662
PersKey.SetValue("SecondaryProgressPanelStyle", 1, RegistryValueKind.DWord)
4654
4663
PersKey.SetValue("AllCaps", 0, RegistryValueKind.DWord)
4655
- PersKey.SetValue("NewDesign", 1, RegistryValueKind.DWord)
4656
4664
PersKey.SetValue("ColorSchemes", 0, RegistryValueKind.DWord)
4657
4665
PersKey.SetValue("ExpandedProgressPanel", 1, RegistryValueKind.DWord)
4666
+ PersKey.SetValue("ShowDateAndTime", 1, RegistryValueKind.DWord)
4658
4667
PersKey.Close()
4659
4668
Dim LogKey As RegistryKey = Key.CreateSubKey("Logs")
4660
4669
LogKey.SetValue("LogFile", Quote & Environment.GetFolderPath(Environment.SpecialFolder.Windows) & "\logs\DISM\DISM.log" & Quote, RegistryValueKind.ExpandString)
@@ -4776,6 +4785,11 @@ Public Class MainForm
4776
4785
Else
4777
4786
DTSettingForm.RichTextBox2.AppendText(CrLf & "ExpandedProgressPanel=0")
4778
4787
End If
4788
+ If ShowDateAndTime Then
4789
+ DTSettingForm.RichTextBox2.AppendText(CrLf & "ShowDateAndTime=1")
4790
+ Else
4791
+ DTSettingForm.RichTextBox2.AppendText(CrLf & "ShowDateAndTime=0")
4792
+ End If
4779
4793
DTSettingForm.RichTextBox2.AppendText(CrLf & CrLf & "[Logs]" & CrLf)
4780
4794
DTSettingForm.RichTextBox2.AppendText("LogFile=" & Quote & LogFile & Quote)
4781
4795
Select Case LogLevel
@@ -4946,6 +4960,7 @@ Public Class MainForm
4946
4960
PersKey.SetValue("SecondaryProgressPanelStyle", ProgressPanelStyle, RegistryValueKind.DWord)
4947
4961
PersKey.SetValue("AllCaps", If(AllCaps, 1, 0), RegistryValueKind.DWord)
4948
4962
PersKey.SetValue("ExpandedProgressPanel", If(ExpandedProgressPanel, 1, 0), RegistryValueKind.DWord)
4963
+ PersKey.SetValue("ShowDateAndTime", If(ShowDateAndTime, 1, 0), RegistryValueKind.DWord)
4949
4964
PersKey.Close()
4950
4965
DynaLog.LogMessage("Configuring log settings...")
4951
4966
Dim LogKey As RegistryKey = Key.CreateSubKey("Logs")
0 commit comments