1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

Notification fix, legendary not required as dependency

This commit is contained in:
Dummerle 2021-03-15 12:03:03 +01:00
parent f704b24ae0
commit 9c4ebcb742
4 changed files with 11 additions and 8 deletions

View file

@ -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>

View file

@ -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

View file

@ -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,6 +245,11 @@ class DownloadTab(QWidget):
if text == "dl_finished": if text == "dl_finished":
pass pass
elif text == "finish": elif text == "finish":
try:
from notifypy import Notify
except ModuleNotFoundError:
logger.warning("No Notification Module found")
else:
notification = Notify() notification = Notify()
notification.title = self.tr("Installation finished") notification.title = self.tr("Installation finished")
notification.message = self.tr("Download of game ") + self.active_game.app_title notification.message = self.tr("Download of game ") + self.active_game.app_title

View file

@ -1,4 +1,3 @@
git+https://github.com/ChemicalXandco/legendary.git@c1db2b9#egg=legendary-gl
requests requests
Pillow Pillow
PyQt5 PyQt5