Rare: Offline mode kinda works again
This commit is contained in:
parent
b1e537af43
commit
6be9eec3ef
|
@ -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)
|
||||
|
|
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue