From 81032c94f5efeddb0c89a9fd777df8c51dda08c4 Mon Sep 17 00:00:00 2001 From: Dummerle Date: Wed, 7 Apr 2021 18:17:56 +0200 Subject: [PATCH] Disable uninstalled widget when download; translations --- Rare/Components/Tabs/Games/GameList.py | 13 ++- .../GameWidgets/BaseUninstalledWidget.py | 1 + Rare/languages/de.qm | Bin 19018 -> 19542 bytes Rare/languages/de.ts | 88 +++++++++++++----- 4 files changed, 79 insertions(+), 23 deletions(-) diff --git a/Rare/Components/Tabs/Games/GameList.py b/Rare/Components/Tabs/Games/GameList.py index e51316da..08c94737 100644 --- a/Rare/Components/Tabs/Games/GameList.py +++ b/Rare/Components/Tabs/Games/GameList.py @@ -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("") diff --git a/Rare/Components/Tabs/Games/GameWidgets/BaseUninstalledWidget.py b/Rare/Components/Tabs/Games/GameWidgets/BaseUninstalledWidget.py index 80b48177..74804e51 100644 --- a/Rare/Components/Tabs/Games/GameWidgets/BaseUninstalledWidget.py +++ b/Rare/Components/Tabs/Games/GameWidgets/BaseUninstalledWidget.py @@ -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) diff --git a/Rare/languages/de.qm b/Rare/languages/de.qm index 9022e87c32cc0e733c65dc7a23da9eed60552a86..73a052a29bade56c6a06417ac54cc1ab200e5f8f 100644 GIT binary patch delta 1843 zcmaJ>X;4#V6g|mH$ogJ@5CIi<3Ti-91Q9{X8qgr(C{mG%nvno$W1uF8h#E!*t+hxo z)`B`Zs8m}!#lk>`3U0XIR%@$ut4ys{sn)&P;?`b_Wmy1>L9K@1oRJbVw4g6-J1Y)9Kuhx0WK+s>AM!-7$l^o z1Bwplhpz$p7GvVFc8Z^mG@n60#5AO5zW^i?k+owHF!Y=gL)Red8J+FwRnC`WGc0+( z1A(R3;0_>$!NxWQh!bLSmJLvrqOGC`kon-SEF18ehC7N(px-qCqe}pWpB2Q#`~?iS zC8!#B0T`4m=zh-^2)!hD){h0)3ZcH6@+JEUCsgu)CQX=|ngBcG@xrh65_3tpa9^ed z82PL4KrmhK=oTLJCMV=ug?CH-q(X8=G=>ywRxqw7i4b?3argX)m_{*P^+f1;G zjvg&e4DQd^j!pu!wam(ybBLgtshaW&Ipoc3YH0)#E;C=;6xjj(In%VDM_Dnmr{|Bv zPLa>O^MKoNQK-Woh|CjJ>sx`KKb#oh=S1CkQT>HFYDKeXw`@8Pk}hiB;R*QO5R2v$ z(Se)A+Jn{P)C(sD=ZQz2m`Y9_5rYD_c$T6D7;;ve-_{Md z=Zinc7gEn%#2X9RiE)s)wS$Nb-YsrxoJ|Qh@rg>Z+GDVb`fDp0vC$=<>jpU(=~5Lz zR``fq)+bXzRj$jKog^>jitc1HxI7u)QQK{)i;Zel-9HcSzzQ4*>obCCOo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nFujn9Rqq=wRLtxZiZbHp$z!c`ez;e$1Vj{g?&AIGNy_C*St}$9o8L)6SR;~u3 z4s!S0R{{Ss;j6?xO8ksV%1*FxvPpiGT9g;HzT zuL1p%~gvx3DawCwrr;ibP0h6&eH9u6rwsdlK==a^aV8Y zI^mVIw<)w+g}JMuX*72Qrxy`wvxK8Ea?Y|u_~qjf0Ou+YuD_m4onH`*!6#{!xuRt! zrF3eOn6PR9m~=%f+C;NsQ$0BOxVWMshC-+J;HcNc50|}6g$Bjidvs2iB<^!IlY>vi z&Vj|$u~j_1jfg@E#d8J;n3yLHm`_la=88|O4**wyza-m1vkSi{jhRm$kg=zwQ1dLh zWoM;`(w%gV-;=U~GU#4Ql5-vj;ryg#g^C1ikxu$LD6HG1-raE&)+18i??hy(lm_+7 z$f=FmDLaden... + + DlQueueWidget + + + Download Queue + Eingereihte Downloads + + + + No downloads in queue + Keine eingereihten Downloads + + + + DlWidget + + + Download size: {} GB + Download Größe: {} GB + + + + Install size: {} GB + Installierte Größe: {} GB + + + + Remove Download + Download löschen + + DownloadTab - + No active Download Kein aktiver Download - + Stop Download Download anhalten - + No updates available Keine Updates verfügbar - + Error preparing download Fehler beim Vorbereiten des Downloads - + Download size is 0. Game already exists Die Größe des Downloads ist 0. Spiel existiert bereits - + Installation finished Installation abgeschlossen - + Installing Game: No active download Installierendes Spiel: Kein aktiver Download - + Download speed Geschwindigkeit - + Cache used Benutzter Cache - + Downloaded Runtergeladen - + Time left: Zeit übrig: - + Finished Download of game {} Downlaod von {} abgeschlossen - + Download finished. Reload library Download abgeschlossen. Spiele neu laden Download queue: Empty - Anschließende Downloads: Keine + Anschließende Downloads: Keine Download queue: - Anschließende Downloads: + Anschließende Downloads: Empty - Keine + Keine - + Installing Game: Installierendes Spiel: + + + Updates + Updates + DxvkWidget @@ -273,12 +309,12 @@ GameList - + Launch Starten - + Game running Spiel läuft @@ -370,10 +406,15 @@ IconWidgetUninstalled - + Install Game Spiel installieren + + + Installation running + Installation läuft + ImportWidget @@ -744,6 +785,11 @@ Installationsgröße: {} GB Exit to System Tray Icon Beim verlassen auf das System Tray Icon minimieren + + + Hide to System Tray Icon + In das System Tray Icon minimieren + SyncSaves @@ -923,7 +969,7 @@ Installationsgröße: {} GB UpdateWidget - + Update Game Spiel updaten