1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

fix some bugs

This commit is contained in:
Dummerle 2021-05-19 21:20:35 +02:00
parent df5e83352a
commit e0916a0fa6
3 changed files with 28 additions and 26 deletions

View file

@ -251,7 +251,8 @@ class EGLSyncWidget(QGroupBox):
if export:
self.app_title_label = QLabel(game.title)
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.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.layout.addWidget(self.button)
self.setLayout(self.layout)
def export_game(self):
self.core.egl_export(self.game.app_name)

View file

@ -88,22 +88,22 @@ class Ui_legendary_settings(object):
self.verticalLayout_2.addWidget(self.path_info)
self.gridLayout = QtWidgets.QGridLayout()
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.setObjectName("exportable_games")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.exportable_games)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.gridLayout.addWidget(self.exportable_games, 0, 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, 0, 1, 1)
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.export_all_button = QtWidgets.QPushButton(self.egl_sync_page)
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.groupBox = QtWidgets.QGroupBox(self.egl_sync_page)
self.groupBox.setObjectName("groupBox")
@ -139,10 +139,10 @@ class Ui_legendary_settings(object):
self.back_button.setText(_translate("legendary_settings", "Back"))
self.title.setText(_translate("legendary_settings", "<h2>Sync Games with Epic Games Store</h2>"))
self.path_info.setText(_translate("legendary_settings", "TextLabel"))
self.importable_games.setTitle(_translate("legendary_settings", "Exportable Games"))
self.exportable_games.setTitle(_translate("legendary_settings", "Importable Games"))
self.import_all_button.setText(_translate("legendary_settings", "Import all Games"))
self.exportable_games.setTitle(_translate("legendary_settings", "Exportable Games"))
self.importable_games.setTitle(_translate("legendary_settings", "Importable"))
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.sync_once_button.setText(_translate("legendary_settings", "Sync once"))
self.enable_sync_button.setText(_translate("legendary_settings", "Enable automatic sync"))

View file

@ -158,33 +158,33 @@
</item>
<item>
<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">
<widget class="QGroupBox" name="exportable_games">
<property name="title">
<string>Importable Games</string>
<string>Exportable Games</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3"/>
</widget>
</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">
<widget class="QPushButton" name="import_all_button">
<widget class="QPushButton" name="export_all_button">
<property name="text">
<string>Import all Games</string>
<string>Export all Games</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="export_all_button">
<widget class="QPushButton" name="import_all_button">
<property name="text">
<string>Export all Games</string>
<string>Import all Games</string>
</property>
</widget>
</item>