fix some bugs
This commit is contained in:
parent
df5e83352a
commit
e0916a0fa6
3 changed files with 28 additions and 26 deletions
|
@ -251,7 +251,8 @@ class EGLSyncWidget(QGroupBox):
|
||||||
if export:
|
if export:
|
||||||
self.app_title_label = QLabel(game.title)
|
self.app_title_label = QLabel(game.title)
|
||||||
else:
|
else:
|
||||||
self.app_title_label = QLabel(game.app_title)
|
title = self.core.get_game(game.app_name).app_title
|
||||||
|
self.app_title_label = QLabel(title)
|
||||||
self.layout.addWidget(self.app_title_label)
|
self.layout.addWidget(self.app_title_label)
|
||||||
self.button = QPushButton(self.tr("Export") if export else self.tr("Import"))
|
self.button = QPushButton(self.tr("Export") if export else self.tr("Import"))
|
||||||
|
|
||||||
|
@ -261,6 +262,7 @@ class EGLSyncWidget(QGroupBox):
|
||||||
self.button.clicked.connect(self.import_game)
|
self.button.clicked.connect(self.import_game)
|
||||||
|
|
||||||
self.layout.addWidget(self.button)
|
self.layout.addWidget(self.button)
|
||||||
|
self.setLayout(self.layout)
|
||||||
|
|
||||||
def export_game(self):
|
def export_game(self):
|
||||||
self.core.egl_export(self.game.app_name)
|
self.core.egl_export(self.game.app_name)
|
||||||
|
|
|
@ -88,22 +88,22 @@ class Ui_legendary_settings(object):
|
||||||
self.verticalLayout_2.addWidget(self.path_info)
|
self.verticalLayout_2.addWidget(self.path_info)
|
||||||
self.gridLayout = QtWidgets.QGridLayout()
|
self.gridLayout = QtWidgets.QGridLayout()
|
||||||
self.gridLayout.setObjectName("gridLayout")
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
self.importable_games = QtWidgets.QGroupBox(self.egl_sync_page)
|
|
||||||
self.importable_games.setObjectName("importable_games")
|
|
||||||
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.importable_games)
|
|
||||||
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
|
||||||
self.gridLayout.addWidget(self.importable_games, 0, 1, 1, 1)
|
|
||||||
self.exportable_games = QtWidgets.QGroupBox(self.egl_sync_page)
|
self.exportable_games = QtWidgets.QGroupBox(self.egl_sync_page)
|
||||||
self.exportable_games.setObjectName("exportable_games")
|
self.exportable_games.setObjectName("exportable_games")
|
||||||
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.exportable_games)
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.exportable_games)
|
||||||
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
self.gridLayout.addWidget(self.exportable_games, 0, 0, 1, 1)
|
self.gridLayout.addWidget(self.exportable_games, 0, 0, 1, 1)
|
||||||
self.import_all_button = QtWidgets.QPushButton(self.egl_sync_page)
|
self.importable_games = QtWidgets.QGroupBox(self.egl_sync_page)
|
||||||
self.import_all_button.setObjectName("import_all_button")
|
self.importable_games.setObjectName("importable_games")
|
||||||
self.gridLayout.addWidget(self.import_all_button, 1, 0, 1, 1)
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.importable_games)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.gridLayout.addWidget(self.importable_games, 0, 1, 1, 1)
|
||||||
self.export_all_button = QtWidgets.QPushButton(self.egl_sync_page)
|
self.export_all_button = QtWidgets.QPushButton(self.egl_sync_page)
|
||||||
self.export_all_button.setObjectName("export_all_button")
|
self.export_all_button.setObjectName("export_all_button")
|
||||||
self.gridLayout.addWidget(self.export_all_button, 1, 1, 1, 1)
|
self.gridLayout.addWidget(self.export_all_button, 1, 0, 1, 1)
|
||||||
|
self.import_all_button = QtWidgets.QPushButton(self.egl_sync_page)
|
||||||
|
self.import_all_button.setObjectName("import_all_button")
|
||||||
|
self.gridLayout.addWidget(self.import_all_button, 1, 1, 1, 1)
|
||||||
self.verticalLayout_2.addLayout(self.gridLayout)
|
self.verticalLayout_2.addLayout(self.gridLayout)
|
||||||
self.groupBox = QtWidgets.QGroupBox(self.egl_sync_page)
|
self.groupBox = QtWidgets.QGroupBox(self.egl_sync_page)
|
||||||
self.groupBox.setObjectName("groupBox")
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
@ -139,10 +139,10 @@ class Ui_legendary_settings(object):
|
||||||
self.back_button.setText(_translate("legendary_settings", "Back"))
|
self.back_button.setText(_translate("legendary_settings", "Back"))
|
||||||
self.title.setText(_translate("legendary_settings", "<h2>Sync Games with Epic Games Store</h2>"))
|
self.title.setText(_translate("legendary_settings", "<h2>Sync Games with Epic Games Store</h2>"))
|
||||||
self.path_info.setText(_translate("legendary_settings", "TextLabel"))
|
self.path_info.setText(_translate("legendary_settings", "TextLabel"))
|
||||||
self.importable_games.setTitle(_translate("legendary_settings", "Exportable Games"))
|
self.exportable_games.setTitle(_translate("legendary_settings", "Exportable Games"))
|
||||||
self.exportable_games.setTitle(_translate("legendary_settings", "Importable Games"))
|
self.importable_games.setTitle(_translate("legendary_settings", "Importable"))
|
||||||
self.import_all_button.setText(_translate("legendary_settings", "Import all Games"))
|
|
||||||
self.export_all_button.setText(_translate("legendary_settings", "Export all Games"))
|
self.export_all_button.setText(_translate("legendary_settings", "Export all Games"))
|
||||||
|
self.import_all_button.setText(_translate("legendary_settings", "Import all Games"))
|
||||||
self.groupBox.setTitle(_translate("legendary_settings", "Enable Sync"))
|
self.groupBox.setTitle(_translate("legendary_settings", "Enable Sync"))
|
||||||
self.sync_once_button.setText(_translate("legendary_settings", "Sync once"))
|
self.sync_once_button.setText(_translate("legendary_settings", "Sync once"))
|
||||||
self.enable_sync_button.setText(_translate("legendary_settings", "Enable automatic sync"))
|
self.enable_sync_button.setText(_translate("legendary_settings", "Enable automatic sync"))
|
||||||
|
|
|
@ -158,33 +158,33 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QGroupBox" name="importable_games">
|
|
||||||
<property name="title">
|
|
||||||
<string>Exportable Games</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4"/>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QGroupBox" name="exportable_games">
|
<widget class="QGroupBox" name="exportable_games">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Importable Games</string>
|
<string>Exportable Games</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3"/>
|
<layout class="QVBoxLayout" name="verticalLayout_3"/>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QGroupBox" name="importable_games">
|
||||||
|
<property name="title">
|
||||||
|
<string>Importable</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_4"/>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QPushButton" name="import_all_button">
|
<widget class="QPushButton" name="export_all_button">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Import all Games</string>
|
<string>Export all Games</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QPushButton" name="export_all_button">
|
<widget class="QPushButton" name="import_all_button">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Export all Games</string>
|
<string>Import all Games</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue