Allow unlimited backups on Add Game Wizard

This commit is contained in:
MikeMaximus
2019-05-15 16:40:32 -06:00
parent afc89e8dfe
commit 8d1396d992
6 changed files with 31 additions and 17 deletions
+2 -4
View File
@@ -228,19 +228,17 @@ Partial Class frmAddWizard
Me.lblLimit.AutoSize = True Me.lblLimit.AutoSize = True
Me.lblLimit.Location = New System.Drawing.Point(203, 109) Me.lblLimit.Location = New System.Drawing.Point(203, 109)
Me.lblLimit.Name = "lblLimit" Me.lblLimit.Name = "lblLimit"
Me.lblLimit.Size = New System.Drawing.Size(68, 13) Me.lblLimit.Size = New System.Drawing.Size(138, 13)
Me.lblLimit.TabIndex = 15 Me.lblLimit.TabIndex = 15
Me.lblLimit.Text = "Backup Limit" Me.lblLimit.Text = "Backup Limit (0 = Unlimited)"
Me.lblLimit.Visible = False Me.lblLimit.Visible = False
' '
'nudLimit 'nudLimit
' '
Me.nudLimit.Location = New System.Drawing.Point(157, 107) Me.nudLimit.Location = New System.Drawing.Point(157, 107)
Me.nudLimit.Minimum = New Decimal(New Integer() {2, 0, 0, 0})
Me.nudLimit.Name = "nudLimit" Me.nudLimit.Name = "nudLimit"
Me.nudLimit.Size = New System.Drawing.Size(40, 20) Me.nudLimit.Size = New System.Drawing.Size(40, 20)
Me.nudLimit.TabIndex = 14 Me.nudLimit.TabIndex = 14
Me.nudLimit.Value = New Decimal(New Integer() {2, 0, 0, 0})
Me.nudLimit.Visible = False Me.nudLimit.Visible = False
' '
'lblStep3Title 'lblStep3Title
+6 -4
View File
@@ -75,10 +75,8 @@ Public Class frmAddWizard
If chkTimeStamp.Checked Then If chkTimeStamp.Checked Then
nudLimit.Visible = True nudLimit.Visible = True
lblLimit.Visible = True lblLimit.Visible = True
nudLimit.Value = 5
Else Else
nudLimit.Visible = False nudLimit.Visible = False
nudLimit.Value = nudLimit.Minimum
lblLimit.Visible = False lblLimit.Visible = False
End If End If
End Sub End Sub
@@ -87,9 +85,13 @@ Public Class frmAddWizard
Dim sLimit As String = String.Empty Dim sLimit As String = String.Empty
If bTimeStamp Then If bTimeStamp Then
Return mgrCommon.BooleanYesNo(bTimeStamp) & " (" & iLimit & ")" If iLimit <> 0 Then
Return mgrCommon.BooleanYesNo(bTimeStamp) & " (" & iLimit & ")"
Else
Return mgrCommon.BooleanYesNo(bTimeStamp) & " (" & frmAddWizard_Summary_NoLimit & ")"
End If
Else Else
Return mgrCommon.BooleanYesNo(bTimeStamp) Return mgrCommon.BooleanYesNo(bTimeStamp)
End If End If
End Function End Function
+5 -5
View File
@@ -313,9 +313,9 @@ Partial Class frmGameManager
Me.lblLimit.AutoSize = True Me.lblLimit.AutoSize = True
Me.lblLimit.Location = New System.Drawing.Point(376, 229) Me.lblLimit.Location = New System.Drawing.Point(376, 229)
Me.lblLimit.Name = "lblLimit" Me.lblLimit.Name = "lblLimit"
Me.lblLimit.Size = New System.Drawing.Size(68, 13) Me.lblLimit.Size = New System.Drawing.Size(138, 13)
Me.lblLimit.TabIndex = 23 Me.lblLimit.TabIndex = 23
Me.lblLimit.Text = "Backup Limit" Me.lblLimit.Text = "Backup Limit (0 = Unlimited)"
Me.lblLimit.Visible = False Me.lblLimit.Visible = False
' '
'nudLimit 'nudLimit
@@ -981,18 +981,18 @@ Partial Class frmGameManager
Me.cmsOpenBackup.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.cmsOpenBackupFile, Me.cmsOpenBackupFolder}) Me.cmsOpenBackup.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.cmsOpenBackupFile, Me.cmsOpenBackupFolder})
Me.cmsOpenBackup.Name = "cmsOpenBackup" Me.cmsOpenBackup.Name = "cmsOpenBackup"
Me.cmsOpenBackup.ShowImageMargin = False Me.cmsOpenBackup.ShowImageMargin = False
Me.cmsOpenBackup.Size = New System.Drawing.Size(156, 70) Me.cmsOpenBackup.Size = New System.Drawing.Size(83, 48)
' '
'cmsOpenBackupFile 'cmsOpenBackupFile
' '
Me.cmsOpenBackupFile.Name = "cmsOpenBackupFile" Me.cmsOpenBackupFile.Name = "cmsOpenBackupFile"
Me.cmsOpenBackupFile.Size = New System.Drawing.Size(155, 22) Me.cmsOpenBackupFile.Size = New System.Drawing.Size(82, 22)
Me.cmsOpenBackupFile.Text = "&File" Me.cmsOpenBackupFile.Text = "&File"
' '
'cmsOpenBackupFolder 'cmsOpenBackupFolder
' '
Me.cmsOpenBackupFolder.Name = "cmsOpenBackupFolder" Me.cmsOpenBackupFolder.Name = "cmsOpenBackupFolder"
Me.cmsOpenBackupFolder.Size = New System.Drawing.Size(155, 22) Me.cmsOpenBackupFolder.Size = New System.Drawing.Size(82, 22)
Me.cmsOpenBackupFolder.Text = "F&older" Me.cmsOpenBackupFolder.Text = "F&older"
' '
'frmGameManager 'frmGameManager
+11 -2
View File
@@ -547,7 +547,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to Backup Limit. ''' Looks up a localized string similar to Backup Limit (0 = Unlimited).
'''</summary> '''</summary>
Friend ReadOnly Property frmAddWizard_lblLimit() As String Friend ReadOnly Property frmAddWizard_lblLimit() As String
Get Get
@@ -744,6 +744,15 @@ Namespace My.Resources
End Get End Get
End Property End Property
'''<summary>
''' Looks up a localized string similar to Unlimited.
'''</summary>
Friend ReadOnly Property frmAddWizard_Summary_NoLimit() As String
Get
Return ResourceManager.GetString("frmAddWizard_Summary_NoLimit", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to Process. ''' Looks up a localized string similar to Process.
'''</summary> '''</summary>
@@ -2410,7 +2419,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to Backup Limit. ''' Looks up a localized string similar to Backup Limit (0 = Unlimited).
'''</summary> '''</summary>
Friend ReadOnly Property frmGameManager_lblLimit() As String Friend ReadOnly Property frmGameManager_lblLimit() As String
Get Get
+5 -2
View File
@@ -1682,7 +1682,7 @@
<value>You cannot choose a file located outside the current [PARAM] backup folder.</value> <value>You cannot choose a file located outside the current [PARAM] backup folder.</value>
</data> </data>
<data name="frmGameManager_lblLimit" xml:space="preserve"> <data name="frmGameManager_lblLimit" xml:space="preserve">
<value>Backup Limit</value> <value>Backup Limit (0 = Unlimited)</value>
</data> </data>
<data name="mgrBackup_BackupLimitExceeded" xml:space="preserve"> <data name="mgrBackup_BackupLimitExceeded" xml:space="preserve">
<value>[PARAM] was automatically removed.</value> <value>[PARAM] was automatically removed.</value>
@@ -1697,7 +1697,7 @@
<value>This will delete all backup files for [PARAM]. This cannot be undone. [BR][BR]Do you want to continue?</value> <value>This will delete all backup files for [PARAM]. This cannot be undone. [BR][BR]Do you want to continue?</value>
</data> </data>
<data name="frmAddWizard_lblLimit" xml:space="preserve"> <data name="frmAddWizard_lblLimit" xml:space="preserve">
<value>Backup Limit</value> <value>Backup Limit (0 = Unlimited)</value>
</data> </data>
<data name="frmGameManager_Unknown" xml:space="preserve"> <data name="frmGameManager_Unknown" xml:space="preserve">
<value>Unknown</value> <value>Unknown</value>
@@ -2389,4 +2389,7 @@
<data name="frmGameManager_ErrorNoBackupFolderExists" xml:space="preserve"> <data name="frmGameManager_ErrorNoBackupFolderExists" xml:space="preserve">
<value>The backup folder does not exist.</value> <value>The backup folder does not exist.</value>
</data> </data>
<data name="frmAddWizard_Summary_NoLimit" xml:space="preserve">
<value>Unlimited</value>
</data>
</root> </root>
+2
View File
@@ -9,6 +9,8 @@ New in 1.1.9
All Platforms: All Platforms:
- Fixed a bug on the Game Manager that caused the "Save Entire Folder" checkbox to be unchecked anytime the "Save Path" field was changed. - Fixed a bug on the Game Manager that caused the "Save Entire Folder" checkbox to be unchecked anytime the "Save Path" field was changed.
- The "Add Game Wizard" now allows you to set an unlimited number of backups.
- The "Backup Limit" label has been updated to indicate that 0 means unlimited.
- The "Open Backup File" button on the Game Manager is now called "Open Backup". It now gives a choice between opening the backup file or the folder containing the file. - The "Open Backup File" button on the Game Manager is now called "Open Backup". It now gives a choice between opening the backup file or the folder containing the file.
- Set rules are now used for backup folder and file names, regardless of the operating system GBM is running on. - Set rules are now used for backup folder and file names, regardless of the operating system GBM is running on.
- GBM now always filters out NTFS reserved characters and allows a maximum file name length of 255. - GBM now always filters out NTFS reserved characters and allows a maximum file name length of 255.