Notification fix, legendary not required as dependency
This commit is contained in:
parent
f704b24ae0
commit
9c4ebcb742
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (Rare)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
|
||||
</project>
|
|
@ -10,7 +10,6 @@ Rare is currently considered beta software and in no way feature-complete. You w
|
|||
- requests,
|
||||
- pillow
|
||||
- pyqt5
|
||||
- legendary-gl
|
||||
- notify-py
|
||||
- QtAwesome
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from multiprocessing import Queue as MPQueue
|
|||
|
||||
from PyQt5.QtCore import QThread, pyqtSignal, Qt, QVariant
|
||||
from PyQt5.QtWidgets import QWidget, QMessageBox, QVBoxLayout, QLabel, QGridLayout, QProgressBar, QPushButton, QDialog, QListWidget
|
||||
from notifypy import Notify
|
||||
|
||||
from legendary.core import LegendaryCore
|
||||
from legendary.models.game import Game
|
||||
from legendary.models.downloading import UIUpdate
|
||||
|
@ -245,10 +245,15 @@ class DownloadTab(QWidget):
|
|||
if text == "dl_finished":
|
||||
pass
|
||||
elif text == "finish":
|
||||
notification = Notify()
|
||||
notification.title = self.tr("Installation finished")
|
||||
notification.message = self.tr("Download of game ") + self.active_game.app_title
|
||||
notification.send()
|
||||
try:
|
||||
from notifypy import Notify
|
||||
except ModuleNotFoundError:
|
||||
logger.warning("No Notification Module found")
|
||||
else:
|
||||
notification = Notify()
|
||||
notification.title = self.tr("Installation finished")
|
||||
notification.message = self.tr("Download of game ") + self.active_game.app_title
|
||||
notification.send()
|
||||
# QMessageBox.information(self, "Info", "Download finished")
|
||||
self.finished.emit()
|
||||
self.installing_game.setText(self.tr("Installing Game: No active download"))
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
git+https://github.com/ChemicalXandco/legendary.git@c1db2b9#egg=legendary-gl
|
||||
requests
|
||||
Pillow
|
||||
PyQt5
|
||||
|
|
Loading…
Reference in a new issue