Added one-time warning for #150

This commit is contained in:
MikeMaximus
2018-09-09 11:34:25 -06:00
parent 7a4caab5a5
commit 0f800565fe
4 changed files with 20 additions and 0 deletions
+7
View File
@@ -1553,6 +1553,13 @@ Public Class frmGameManager
Dim sFile As String
Dim sFiles As String()
'Show one time warning
If Not (oSettings.SuppressMessages And mgrSettings.eSuppressMessages.BackupImport) = mgrSettings.eSuppressMessages.BackupImport Then
mgrCommon.ShowMessage(frmGameManager_WarningImportBackup, MsgBoxStyle.Information)
oSettings.SuppressMessages = oSettings.SetMessageField(oSettings.SuppressMessages, mgrSettings.eSuppressMessages.BackupImport)
oSettings.SaveSettings()
End If
ImportBackupList.Clear()
sFiles = mgrCommon.OpenMultiFileBrowser("GM_ImportBackup", frmGameManager_Choose7zImport, "7z",
+1
View File
@@ -30,6 +30,7 @@ Public Class mgrSettings
<Flags()> Public Enum eSuppressMessages
None = 0
GameIDSync = 1
BackupImport = 2
End Enum
Property StartWithWindows As Boolean
+9
View File
@@ -2445,6 +2445,15 @@ Namespace My.Resources
End Get
End Property
'''<summary>
''' Looks up a localized string similar to This feature is intended to import 7-Zip backup archives compatible with the selected game configuration.[BR][BR]GBM does NOT verify these files, you should only use files created by GBM or other compatible archives that were created using the same settings as the current game configuration.[BR][BR]This message will only be shown once..
'''</summary>
Friend ReadOnly Property frmGameManager_WarningImportBackup() As String
Get
Return ResourceManager.GetString("frmGameManager_WarningImportBackup", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to XML.
'''</summary>
+3
View File
@@ -2248,4 +2248,7 @@
<data name="frmGameManager_btnProcesses" xml:space="preserve">
<value>Pro&amp;cesses...</value>
</data>
<data name="frmGameManager_WarningImportBackup" xml:space="preserve">
<value>This feature is intended to import 7-Zip backup archives compatible with the selected game configuration.[BR][BR]GBM does NOT verify these files, you should only use files created by GBM or other compatible archives that were created using the same settings as the current game configuration.[BR][BR]This message will only be shown once.</value>
</data>
</root>