Removed import variables that are no longer needed
This commit is contained in:
@@ -6,7 +6,6 @@ Public Class frmAdvancedImport
|
||||
Private oImportData As ExportData
|
||||
Private hshImportData As Hashtable
|
||||
Private hshFinalData As New Hashtable
|
||||
Private bModWinConfigsForLinux As Boolean
|
||||
Private bSelectAll As Boolean = True
|
||||
Private bIsLoading As Boolean = False
|
||||
Private iCurrentSort As Integer = 0
|
||||
@@ -31,15 +30,6 @@ Public Class frmAdvancedImport
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public Property ModWinConfigsForLinux As Boolean
|
||||
Set(value As Boolean)
|
||||
bModWinConfigsForLinux = value
|
||||
End Set
|
||||
Get
|
||||
Return bModWinConfigsForLinux
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property FinalData As Hashtable
|
||||
Get
|
||||
Return hshFinalData
|
||||
@@ -147,7 +137,7 @@ Public Class frmAdvancedImport
|
||||
End If
|
||||
|
||||
'Check for hardcoded ignore tags
|
||||
If bAddItem And ModWinConfigsForLinux Then
|
||||
If bAddItem And (mgrCommon.IsUnix And oApp.OS = clsGame.eOS.Windows) Then
|
||||
bAddItem = CheckIgnoreTags(oApp.ImportTags)
|
||||
End If
|
||||
|
||||
|
||||
@@ -1763,7 +1763,7 @@ Public Class frmGameManager
|
||||
sLocation = mgrCommon.OpenFileBrowser("XML_Import", frmGameManager_ChooseImportXML, "xml", frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
||||
|
||||
If sLocation <> String.Empty Then
|
||||
If mgrMonitorList.DoImport(sLocation, False, Settings) Then
|
||||
If mgrMonitorList.DoImport(sLocation, False) Then
|
||||
mgrMonitorList.SyncMonitorLists(Settings)
|
||||
LoadData()
|
||||
LoadBackupData()
|
||||
@@ -1783,9 +1783,9 @@ Public Class frmGameManager
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub ImportOfficialGameList(ByVal sImportUrl As String, ByVal bWinConfigsInLinux As Boolean)
|
||||
Private Sub ImportOfficialGameList(ByVal sImportUrl As String)
|
||||
If mgrCommon.ShowMessage(frmGameManager_ConfirmOfficialImport, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||
If mgrMonitorList.DoImport(sImportUrl, True, Settings,, bWinConfigsInLinux) Then
|
||||
If mgrMonitorList.DoImport(sImportUrl, True) Then
|
||||
mgrMonitorList.SyncMonitorLists(Settings)
|
||||
LoadData()
|
||||
LoadBackupData()
|
||||
@@ -2080,7 +2080,6 @@ Public Class frmGameManager
|
||||
End Sub
|
||||
|
||||
Private Sub cmsOfficialWindows_Click(sender As Object, e As EventArgs) Handles cmsOfficialWindows.Click, cmsOfficial.Click
|
||||
Dim bWinConfigsinLinux As Boolean = False
|
||||
'Show one time warning about Windows configs in Linux
|
||||
If mgrCommon.IsUnix Then
|
||||
If Not (oSettings.SuppressMessages And mgrSettings.eSuppressMessages.WinConfigsInLinux) = mgrSettings.eSuppressMessages.WinConfigsInLinux Then
|
||||
@@ -2088,14 +2087,13 @@ Public Class frmGameManager
|
||||
oSettings.SuppressMessages = oSettings.SetMessageField(oSettings.SuppressMessages, mgrSettings.eSuppressMessages.WinConfigsInLinux)
|
||||
oSettings.SaveSettings()
|
||||
End If
|
||||
bWinConfigsinLinux = True
|
||||
End If
|
||||
|
||||
ImportOfficialGameList(App_URLImport, bWinConfigsinLinux)
|
||||
ImportOfficialGameList(App_URLImport)
|
||||
End Sub
|
||||
|
||||
Private Sub cmsOfficialLinux_Click(sender As Object, e As EventArgs) Handles cmsOfficialLinux.Click
|
||||
ImportOfficialGameList(App_URLImportLinux, False)
|
||||
ImportOfficialGameList(App_URLImportLinux)
|
||||
End Sub
|
||||
|
||||
Private Sub cmsFile_Click(sender As Object, e As EventArgs) Handles cmsFile.Click
|
||||
|
||||
@@ -106,7 +106,7 @@ Public Class frmStartUpWizard
|
||||
End If
|
||||
|
||||
If mgrCommon.ShowMessage(frmStartUpWizard_ConfirmOfficialImport, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||
If mgrMonitorList.DoImport(sImportURL, True, Settings, True) Then
|
||||
If mgrMonitorList.DoImport(sImportURL, True) Then
|
||||
oGameData = mgrMonitorList.ReadList(mgrMonitorList.eListTypes.FullList)
|
||||
mgrMonitorList.SyncMonitorLists(oSettings)
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user