|
9 | 9 | from PyQt6.uic import loadUi |
10 | 10 | from PyQt6.QtGui import QDesktopServices |
11 | 11 | from components.popups import errorDialog, infoDialog, windowsNotification |
12 | | -from components.shellbridge import InstallSpicetify, UpdateSpicetify, ApplySpicetify, UninstallSpicetify, CustomCommand,checkApplied,blockSpotifyUpdate |
13 | | -from components.tools import getLatestRelease |
| 12 | +from components.shellbridge import InstallSpicetify, UpdateSpicetify, ApplySpicetify, UninstallSpicetify, CustomCommand,checkApplied,blockSpotifyUpdate,checkUpdateSupression |
| 13 | +from components.tools import getLatestRelease, writeManagerPoint |
14 | 14 | from components.afterinstall_popup import Popup |
15 | 15 |
|
16 | 16 |
|
@@ -47,7 +47,10 @@ def __init__(self): |
47 | 47 | # Execute once window is loaded before listeners are enabled |
48 | 48 | def InitWindow(self): |
49 | 49 | self.SystemSoftStatusCheck() |
50 | | - print('Made by Protonos') |
| 50 | + if(checkUpdateSupression()): |
| 51 | + self.check_noupdate.setChecked(True) |
| 52 | + else: |
| 53 | + self.check_noupdate.setChecked(False) |
51 | 54 |
|
52 | 55 | # Master trigger for all requests |
53 | 56 | def masterButton(self): |
@@ -98,10 +101,12 @@ def masterButton(self): |
98 | 101 | #Update user about progress while installing spicetify |
99 | 102 | def installProgress(self, action): |
100 | 103 | if (action == "fail"): |
| 104 | + writeManagerPoint('nok') |
101 | 105 | self.l_status.setStyleSheet("color: red") |
102 | 106 | self.l_status.setText("⚠️ Installer has crashed ⚠️") |
103 | 107 | errorDialog("The installation of Spicetify has failed due to an unrecoverable error! Check logs or ask for help.") |
104 | 108 | elif (action == "done"): |
| 109 | + writeManagerPoint('ok') |
105 | 110 | self.SystemSoftStatusCheck() |
106 | 111 | windowsNotification("Spicetify Manager", "Spicetify has successfully been installed!") |
107 | 112 | dialog = Popup(self) |
@@ -139,10 +144,10 @@ def Custom(self): |
139 | 144 |
|
140 | 145 | # Disables Spotify self update function using permissions |
141 | 146 | def DisableUpdate(self): |
142 | | - if not (blockSpotifyUpdate(self.check_noupdate.isChecked())): |
143 | | - windowsNotification("Spicetify Manager", "Update supression failed!") |
| 147 | + if (blockSpotifyUpdate(self.check_noupdate.isChecked())): |
| 148 | + windowsNotification("Spicetify Manager", "Update supression change failed!") |
144 | 149 | else: |
145 | | - windowsNotification("Spicetify Manager", "Update supression activated!") |
| 150 | + windowsNotification("Spicetify Manager", "Update supression updated") |
146 | 151 |
|
147 | 152 |
|
148 | 153 | #Called when spicetify is installed or not? |
|
0 commit comments