Show text when dl finished
This commit is contained in:
parent
8a74c4131e
commit
f1349b696a
|
@ -278,6 +278,7 @@ class DownloadTab(QWidget):
|
||||||
if text == "dl_finished":
|
if text == "dl_finished":
|
||||||
pass
|
pass
|
||||||
elif text == "finish":
|
elif text == "finish":
|
||||||
|
self.installing_game.setText(self.tr("Download finished. Reload library"))
|
||||||
try:
|
try:
|
||||||
from notifypy import Notify
|
from notifypy import Notify
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
|
|
|
@ -6,6 +6,7 @@ from PyQt5.QtWidgets import QWidget, QPushButton, QVBoxLayout, QLabel, QHBoxLayo
|
||||||
QProgressBar, QStackedWidget, QGroupBox
|
QProgressBar, QStackedWidget, QGroupBox
|
||||||
from qtawesome import icon
|
from qtawesome import icon
|
||||||
|
|
||||||
|
from Rare.Components.Dialogs.UninstallDialog import UninstallDialog
|
||||||
from Rare.Components.Tabs.Games.GameInfo.GameSettings import GameSettings
|
from Rare.Components.Tabs.Games.GameInfo.GameSettings import GameSettings
|
||||||
from Rare.utils import LegendaryApi
|
from Rare.utils import LegendaryApi
|
||||||
from Rare.utils.LegendaryApi import VerifyThread
|
from Rare.utils.LegendaryApi import VerifyThread
|
||||||
|
@ -98,10 +99,13 @@ class GameInfo(QWidget):
|
||||||
self.setLayout(self.layout)
|
self.setLayout(self.layout)
|
||||||
|
|
||||||
def uninstall(self):
|
def uninstall(self):
|
||||||
if QMessageBox.question(self, "Uninstall", self.tr("Are you sure to uninstall {}").format(self.game.app_title),
|
infos = UninstallDialog(self.game).get_information()
|
||||||
QMessageBox.Yes | QMessageBox.No) == QMessageBox.Yes:
|
if infos == 0:
|
||||||
LegendaryApi.uninstall(self.game.app_name, self.core)
|
print("Cancel Uninstall")
|
||||||
self.update_list.emit()
|
return
|
||||||
|
|
||||||
|
LegendaryApi.uninstall(self.game.app_name, self.core, infos)
|
||||||
|
self.update_list.emit()
|
||||||
|
|
||||||
def repair(self):
|
def repair(self):
|
||||||
repair_file = os.path.join(self.core.lgd.get_tmp_path(), f'{self.game.app_name}.repair')
|
repair_file = os.path.join(self.core.lgd.get_tmp_path(), f'{self.game.app_name}.repair')
|
||||||
|
|
Loading…
Reference in a new issue