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"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<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>
|
</project>
|
|
@ -10,7 +10,6 @@ Rare is currently considered beta software and in no way feature-complete. You w
|
||||||
- requests,
|
- requests,
|
||||||
- pillow
|
- pillow
|
||||||
- pyqt5
|
- pyqt5
|
||||||
- legendary-gl
|
|
||||||
- notify-py
|
- notify-py
|
||||||
- QtAwesome
|
- QtAwesome
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from multiprocessing import Queue as MPQueue
|
||||||
|
|
||||||
from PyQt5.QtCore import QThread, pyqtSignal, Qt, QVariant
|
from PyQt5.QtCore import QThread, pyqtSignal, Qt, QVariant
|
||||||
from PyQt5.QtWidgets import QWidget, QMessageBox, QVBoxLayout, QLabel, QGridLayout, QProgressBar, QPushButton, QDialog, QListWidget
|
from PyQt5.QtWidgets import QWidget, QMessageBox, QVBoxLayout, QLabel, QGridLayout, QProgressBar, QPushButton, QDialog, QListWidget
|
||||||
from notifypy import Notify
|
|
||||||
from legendary.core import LegendaryCore
|
from legendary.core import LegendaryCore
|
||||||
from legendary.models.game import Game
|
from legendary.models.game import Game
|
||||||
from legendary.models.downloading import UIUpdate
|
from legendary.models.downloading import UIUpdate
|
||||||
|
@ -245,10 +245,15 @@ class DownloadTab(QWidget):
|
||||||
if text == "dl_finished":
|
if text == "dl_finished":
|
||||||
pass
|
pass
|
||||||
elif text == "finish":
|
elif text == "finish":
|
||||||
notification = Notify()
|
try:
|
||||||
notification.title = self.tr("Installation finished")
|
from notifypy import Notify
|
||||||
notification.message = self.tr("Download of game ") + self.active_game.app_title
|
except ModuleNotFoundError:
|
||||||
notification.send()
|
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")
|
# QMessageBox.information(self, "Info", "Download finished")
|
||||||
self.finished.emit()
|
self.finished.emit()
|
||||||
self.installing_game.setText(self.tr("Installing Game: No active download"))
|
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
|
requests
|
||||||
Pillow
|
Pillow
|
||||||
PyQt5
|
PyQt5
|
||||||
|
|
Loading…
Reference in a new issue