Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 95599e8

Browse files
committed
Made some checks only optional when a component is missing
1 parent 5830ad1 commit 95599e8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

main.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,16 +388,17 @@ def activate_finished(self):
388388
def statusUpdate(self):
389389
try:
390390
self.isSpotifyInstalled = checkSpotifyInstalled()
391+
if self.isSpotifyInstalled:
391392

392-
self.isSpicetifyInstalled = checkSpicetifyInstalled()
393+
self.isSpicetifyInstalled = checkSpicetifyInstalled()
394+
if self.isSpicetifyInstalled:
393395

394-
self.isApplied = checkSpicetifyApplied()
396+
self.isApplied = checkSpicetifyApplied()
397+
self.isActive = checkSpicetifyActive()
395398

396-
self.isActive = checkSpicetifyActive()
399+
self.isMarketInstalled = checkMarketplaceInstalled()
397400

398-
self.isMarketInstalled = checkMarketplaceInstalled()
399-
400-
self.LATESTSPICETIFYVER = getLatestSpicetifyRelease().replace("v", "").strip()
401+
self.LATESTSPICETIFYVER = getLatestSpicetifyRelease().replace("v", "").strip()
401402

402403
if self.isSpicetifyInstalled:
403404
self.LOCALSPICETIFYVER = subprocess.check_output(

0 commit comments

Comments
 (0)