diff --git a/Rare/Components/MainWindow.py b/Rare/Components/MainWindow.py index a0116212..19027788 100644 --- a/Rare/Components/MainWindow.py +++ b/Rare/Components/MainWindow.py @@ -1,4 +1,5 @@ -from PyQt5.QtWidgets import QMainWindow +from PyQt5.QtGui import QCloseEvent +from PyQt5.QtWidgets import QMainWindow, QMessageBox from Rare.Components.TabWidget import TabWidget @@ -8,5 +9,14 @@ class MainWindow(QMainWindow): super(MainWindow, self).__init__() self.setGeometry(0, 0, 1200, 800) self.setWindowTitle("Rare - GUI for legendary") - self.setCentralWidget(TabWidget(core)) + self.tab_widget = TabWidget(core) + self.setCentralWidget(self.tab_widget) self.show() + + def closeEvent(self, e: QCloseEvent): + if self.tab_widget.downloadTab.active_game is None: + e.accept() + elif QMessageBox.question(self, "Close", self.tr("There is a download active. Do you really want to exit app?"), QMessageBox.Yes, QMessageBox.No) == QMessageBox.Yes: + e.accept() + else: + e.ignore() diff --git a/Rare/languages/de.qm b/Rare/languages/de.qm index e7d7940b..7312743e 100644 Binary files a/Rare/languages/de.qm and b/Rare/languages/de.qm differ diff --git a/Rare/languages/de.ts b/Rare/languages/de.ts index dc0d4079..016760a2 100644 --- a/Rare/languages/de.ts +++ b/Rare/languages/de.ts @@ -4,12 +4,12 @@ About - + Developer: Entwickler: - + Legendary developer: Legendary Entwickler: @@ -19,10 +19,20 @@ Dies ist eine beta version, also können Bugs entstehen. Wenn du einen Bug bemerkst, kontaktiere mich, indem du einen Issue auf <a href='https://github.com/Dummerle/Rare/issues'>Github</a> erstellst oder mir auf Discord eine Nachricht schickst. Ebenso bei einem Wunsch für Features - + This is a beta version, so you can get bugs. If you get a bug, please report it by creating a Issue on <a href='https://github.com/Dummerle/Rare/issues'>Github</a>. You can also contact me on Discord (Dummerle#7419). Or you can join the <a href='https://discord.gg/YvmABK9YSk'>Discord server</a> Dies ist eine Betaversion, also können Bugs und andere Unschönheiten auftreten. Falls ein Bug auftritt, bitte auf <a href='https://github.com/Dummerle/Rare/issues'>Github</a> melden, indem du einen Issue erstellst oder auf Discord. (Dummerle#7419). Ein Rare <a href='https://discord.gg/YvmABK9YSk'>Discord server</a> existiert ebenfalls + + + Update available: {} -> {} + Update verfügbar: {} -> {} + + + + Download latest release + Neueste Version herunterladen + BaseInstalledWidget @@ -88,27 +98,27 @@ 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: @@ -248,17 +258,17 @@ GameListHeadBar - + Installed only Nur Installierte - + Import Game Spiel importieren - + Search Game Spiel suchen @@ -335,7 +345,7 @@ ImportWidget - + Import Importieren @@ -360,7 +370,7 @@ Laden... - + Error: No valid session found Keine valide Session gefunden @@ -533,37 +543,37 @@ Installationsgröße: {} GB LegendarySettings - + Legendary settings Legendary Einstellungen - + Default installation directory Standardordner für Installationen - + Max workers for Download (Less: slower download)(0: Default) Maximale Anzahl Downloadprozesse (Weniger: langsamer)(Standard: 0) - + Cleanup Aufräumen - + Remove everything Alles aufräumen - + Clean, but keep manifests Aufräumen, aber Manifests behalten - + Cleanup complete! Successfully removed {} MB Fertig! Es wurden {} MB entfernt @@ -612,6 +622,14 @@ Installationsgröße: {} GB Dies öffnet den Browser, Einloggen und den Text kopieren + + MainWindow + + + There is a download active. Do you really want to exit app? + Ein Download läuft noch. Möchtest du die App wirklich beenden? + + MiniWidget @@ -625,12 +643,12 @@ Installationsgröße: {} GB Accounteinstellungen - + Logout Ausloggen - + Do you really want to logout Willst du dich wirklich abmelden @@ -659,7 +677,7 @@ Installationsgröße: {} GB RareSettings - + Rare settings Rare Einstellungen @@ -692,32 +710,32 @@ Installationsgröße: {} GB SyncSaves - + Cloud Saves Cloud Speicherstände - + Found Saves for folowing Games Spielstände für folgende Spiele gefunden - + Your games does not support Cloud Saves Deine Spiele unterstützen keine Online Speicherstände - + Sync all games Alle Spiele synchronisieren - + Found no savepath Kein Speicherort gefunden - + No save path was found. Please select path or skip Kein Speicherort wurde gefunden. Wähle einen Ordner oder überspringe @@ -800,22 +818,22 @@ Installationsgröße: {} GB Pfad ändern - + Uploading... Hochladen... - + Upload finished Hochladen abgeschlossen - + Downloading... Runterladen... - + Download finished Download abgeschlossen @@ -859,7 +877,7 @@ Installationsgröße: {} GB UpdateWidget - + Update Game Spiel updaten