1
0
Fork 0
mirror of synced 2024-05-18 11:32:50 +12:00

Rare: Offline mode kinda works again

This commit is contained in:
loathingKernel 2024-01-29 01:03:02 +02:00
parent b1e537af43
commit 6be9eec3ef
2 changed files with 7 additions and 7 deletions

View file

@ -31,13 +31,13 @@ class MainTabWidget(QTabWidget):
self.games_index = self.addTab(self.games_tab, self.tr("Games"))
# Downloads Tab after Games Tab to use populated RareCore games list
if not self.args.offline:
self.downloads_tab = DownloadsTab(self)
self.downloads_index = self.addTab(self.downloads_tab, "")
self.downloads_tab.update_title.connect(self.__on_downloads_update_title)
self.downloads_tab.update_queues_count()
self.setTabEnabled(self.downloads_index, not self.args.offline)
self.downloads_tab = DownloadsTab(self)
self.downloads_index = self.addTab(self.downloads_tab, "")
self.downloads_tab.update_title.connect(self.__on_downloads_update_title)
self.downloads_tab.update_queues_count()
self.setTabEnabled(self.downloads_index, not self.args.offline)
if not self.args.offline:
self.store_tab = Shop(self.core)
self.store_index = self.addTab(self.store_tab, self.tr("Store (Beta)"))
self.setTabEnabled(self.store_index, not self.args.offline)

View file

@ -39,7 +39,7 @@ class EntitlementsWorker(FetchWorker):
want_entitlements = not self.settings.value(*options.exclude_entitlements)
entitlements = ()
if want_entitlements:
if want_entitlements and not self.args.offline:
# Get entitlements, Ubisoft integration also uses them
self.signals.progress.emit(0, self.signals.tr("Updating entitlements"))
with timelogger(logger, "Request entitlements"):