Skip to content

Commit e48b3f9

Browse files
committed
Use only one label to display the latest backup timestamp
1 parent 18d4990 commit e48b3f9

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

src/GHOSTbackup/Form1.Designer.vb

+2-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GHOSTbackup/Form1.resx

-3
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@
175175
<metadata name="backupGroupBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
176176
<value>True</value>
177177
</metadata>
178-
<metadata name="latestBackupTimestampLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
179-
<value>True</value>
180-
</metadata>
181178
<metadata name="latestBackupHelpLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
182179
<value>True</value>
183180
</metadata>

src/GHOSTbackup/Form1.vb

+3-5
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,9 @@ Public Class Form1
436436
settingsCustomExeTextBox.Text = My.Settings.CustomExeLoc
437437
If My.Settings.LatestBackupTime <> Nothing Then
438438
'Write the latest backup timestamp on the main screen...
439-
latestBackupTimestampLabel.Text = My.Settings.LatestBackupTime.ToString("MM/dd/yyyy hh:mm tt")
439+
latestBackupHelpLabel.Text = "Latest backup: " & My.Settings.LatestBackupTime.ToString("MM/dd/yyyy hh:mm tt")
440440
'...and move it to the left so it won't be cut off.
441441
latestBackupHelpLabel.Location = New Point(269, 23)
442-
latestBackupTimestampLabel.Location = New Point(357, 23)
443442
End If
444443

445444
'Set window position
@@ -760,9 +759,8 @@ Public Class Form1
760759

761760
'Write the timestamp of this backup on the main screen
762761
'And move it to the left so it won't be cut off
763-
latestBackupTimestampLabel.Text = My.Settings.LatestBackupTime.ToString("MM/dd/yyyy hh:mm tt")
762+
latestBackupHelpLabel.Text = "Latest backup: " & My.Settings.LatestBackupTime.ToString("MM/dd/yyyy hh:mm tt")
764763
latestBackupHelpLabel.Location = New Point(269, 23)
765-
latestBackupTimestampLabel.Location = New Point(357, 23)
766764

767765
Dim saveLoc As String = saveLocTextBox.Text
768766
Dim destLoc As String = destLocTextBox.Text & My.Settings.LatestBackupTime.ToString("\\yyyyMMdd HHmm")
@@ -803,7 +801,7 @@ Public Class Form1
803801
My.Settings.SecondToLastBackupTime = My.Settings.LatestBackupTime.Subtract(TimeSpan.FromMinutes(freqSelectTimeUpDown.Value))
804802

805803
'Write the timestamp of this backup on the main screen
806-
latestBackupTimestampLabel.Text = My.Settings.LatestBackupTime.ToString("MM/dd/yyyy hh:mm tt")
804+
latestBackupHelpLabel.Text = "Latest backup: " & My.Settings.LatestBackupTime.ToString("MM/dd/yyyy hh:mm tt")
807805

808806
Dim saveLoc As String = saveLocTextBox.Text
809807
Dim destLoc As String = destLocTextBox.Text & My.Settings.LatestBackupTime.ToString("\\yyyyMMdd HHmm")

0 commit comments

Comments
 (0)