1
0
Fork 0
mirror of synced 2024-05-18 11:32: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"?>
<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>

View file

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

View file

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

View file

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