Disable uninstalled widget when download; translations
This commit is contained in:
parent
9b2ca344eb
commit
81032c94f5
|
@ -101,6 +101,7 @@ class GameList(QStackedWidget):
|
|||
if not game.app_name in installed:
|
||||
uninstalled_games.append(game)
|
||||
|
||||
# add uninstalled games
|
||||
for game in uninstalled_games:
|
||||
if os.path.exists(f"{IMAGE_DIR}/{game.app_name}/UninstalledArt.png"):
|
||||
pixmap = QPixmap(f"{IMAGE_DIR}/{game.app_name}/UninstalledArt.png")
|
||||
|
@ -116,10 +117,10 @@ class GameList(QStackedWidget):
|
|||
pixmap = QPixmap(f"{IMAGE_DIR}/{game.app_name}/UninstalledArt.png")
|
||||
|
||||
icon_widget = IconWidgetUninstalled(game, self.core, pixmap)
|
||||
icon_widget.install_game.connect(self.install_game.emit)
|
||||
icon_widget.install_game.connect(self.install)
|
||||
|
||||
list_widget = ListWidgetUninstalled(self.core, game, pixmap)
|
||||
list_widget.install_game.connect(self.install_game.emit)
|
||||
list_widget.install_game.connect(self.install)
|
||||
|
||||
self.icon_layout.addWidget(icon_widget)
|
||||
self.list_layout.addWidget(list_widget)
|
||||
|
@ -144,6 +145,14 @@ class GameList(QStackedWidget):
|
|||
if self.settings.value("installed_only", False, bool):
|
||||
self.installed_only(True)
|
||||
|
||||
def install(self, options: InstallOptions):
|
||||
icon_widget, list_widget = self.widgets[options.app_name]
|
||||
icon_widget.mousePressEvent = lambda e: None
|
||||
icon_widget.installing = True
|
||||
list_widget.install_button.setDisabled(True)
|
||||
list_widget.installing = True
|
||||
self.install_game.emit(options)
|
||||
|
||||
def finished(self, app_name):
|
||||
self.widgets[app_name][0].info_text = ""
|
||||
self.widgets[app_name][0].info_label.setText("")
|
||||
|
|
|
@ -17,6 +17,7 @@ class BaseUninstalledWidget(QGroupBox):
|
|||
self.game = game
|
||||
self.core = core
|
||||
self.pixmap = pixmap
|
||||
self.installing = False
|
||||
|
||||
self.setContentsMargins(0, 0, 0, 0)
|
||||
|
||||
|
|
Binary file not shown.
|
@ -78,93 +78,129 @@
|
|||
<translation>Laden...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DlQueueWidget</name>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DlQueueWidget.py" line="63"/>
|
||||
<source>Download Queue</source>
|
||||
<translation>Eingereihte Downloads</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DlQueueWidget.py" line="79"/>
|
||||
<source>No downloads in queue</source>
|
||||
<translation>Keine eingereihten Downloads</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DlWidget</name>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DlQueueWidget.py" line="44"/>
|
||||
<source>Download size: {} GB</source>
|
||||
<translation>Download Größe: {} GB</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DlQueueWidget.py" line="45"/>
|
||||
<source>Install size: {} GB</source>
|
||||
<translation>Installierte Größe: {} GB</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DlQueueWidget.py" line="48"/>
|
||||
<source>Remove Download</source>
|
||||
<translation>Download löschen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DownloadTab</name>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="134"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="32"/>
|
||||
<source>No active Download</source>
|
||||
<translation>Kein aktiver Download</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="155"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="53"/>
|
||||
<source>Stop Download</source>
|
||||
<translation>Download anhalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="174"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="69"/>
|
||||
<source>No updates available</source>
|
||||
<translation>Keine Updates verfügbar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="221"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="122"/>
|
||||
<source>Error preparing download</source>
|
||||
<translation>Fehler beim Vorbereiten des Downloads</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="226"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="127"/>
|
||||
<source>Download size is 0. Game already exists</source>
|
||||
<translation>Die Größe des Downloads ist 0. Spiel existiert bereits</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="302"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="201"/>
|
||||
<source>Installation finished</source>
|
||||
<translation>Installation abgeschlossen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="339"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="240"/>
|
||||
<source>Installing Game: No active download</source>
|
||||
<translation>Installierendes Spiel: Kein aktiver Download</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="347"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="248"/>
|
||||
<source>Download speed</source>
|
||||
<translation>Geschwindigkeit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="348"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="249"/>
|
||||
<source>Cache used</source>
|
||||
<translation>Benutzter Cache</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="349"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="250"/>
|
||||
<source>Downloaded</source>
|
||||
<translation>Runtergeladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="350"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="251"/>
|
||||
<source>Time left: </source>
|
||||
<translation>Zeit übrig: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="303"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="202"/>
|
||||
<source>Finished Download of game {}</source>
|
||||
<translation>Downlaod von {} abgeschlossen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="294"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="193"/>
|
||||
<source>Download finished. Reload library</source>
|
||||
<translation>Download abgeschlossen. Spiele neu laden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="332"/>
|
||||
<source>Download queue: Empty</source>
|
||||
<translation>Anschließende Downloads: Keine</translation>
|
||||
<translation type="obsolete">Anschließende Downloads: Keine</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="238"/>
|
||||
<source>Download queue: </source>
|
||||
<translation>Anschließende Downloads: </translation>
|
||||
<translation type="obsolete">Anschließende Downloads: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="238"/>
|
||||
<source>Empty</source>
|
||||
<translation>Keine</translation>
|
||||
<translation type="obsolete">Keine</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="250"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="149"/>
|
||||
<source>Installing Game: </source>
|
||||
<translation>Installierendes Spiel: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="64"/>
|
||||
<source>Updates</source>
|
||||
<translation>Updates</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DxvkWidget</name>
|
||||
|
@ -273,12 +309,12 @@
|
|||
<context>
|
||||
<name>GameList</name>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Games/GameList.py" line="151"/>
|
||||
<location filename="../Components/Tabs/Games/GameList.py" line="160"/>
|
||||
<source>Launch</source>
|
||||
<translation>Starten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Games/GameList.py" line="156"/>
|
||||
<location filename="../Components/Tabs/Games/GameList.py" line="165"/>
|
||||
<source>Game running</source>
|
||||
<translation>Spiel läuft</translation>
|
||||
</message>
|
||||
|
@ -370,10 +406,15 @@
|
|||
<context>
|
||||
<name>IconWidgetUninstalled</name>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Games/GameWidgets/UninstalledIconWidget.py" line="43"/>
|
||||
<location filename="../Components/Tabs/Games/GameWidgets/UninstalledIconWidget.py" line="45"/>
|
||||
<source>Install Game</source>
|
||||
<translation>Spiel installieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Games/GameWidgets/UninstalledIconWidget.py" line="47"/>
|
||||
<source>Installation running</source>
|
||||
<translation>Installation läuft</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ImportWidget</name>
|
||||
|
@ -744,6 +785,11 @@ Installationsgröße: {} GB</translation>
|
|||
<source>Exit to System Tray Icon</source>
|
||||
<translation>Beim verlassen auf das System Tray Icon minimieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Settings/Rare.py" line="48"/>
|
||||
<source>Hide to System Tray Icon</source>
|
||||
<translation>In das System Tray Icon minimieren</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SyncSaves</name>
|
||||
|
@ -923,7 +969,7 @@ Installationsgröße: {} GB</translation>
|
|||
<context>
|
||||
<name>UpdateWidget</name>
|
||||
<message>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="376"/>
|
||||
<location filename="../Components/Tabs/Downloads/DownloadTab.py" line="277"/>
|
||||
<source>Update Game</source>
|
||||
<translation>Spiel updaten</translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in a new issue