Remove syncing cloud text automatically
This commit is contained in:
parent
9bfb9ede76
commit
9aacce97ac
|
@ -25,7 +25,7 @@ class BaseInstalledWidget(QGroupBox):
|
||||||
super(BaseInstalledWidget, self).__init__()
|
super(BaseInstalledWidget, self).__init__()
|
||||||
self.core = shared.core
|
self.core = shared.core
|
||||||
self.game_utils = game_utils
|
self.game_utils = game_utils
|
||||||
self.game_utils.cloud_save_finished.connect(self.sync_finished)
|
|
||||||
self.syncing_cloud_saves = False
|
self.syncing_cloud_saves = False
|
||||||
|
|
||||||
self.texts = {
|
self.texts = {
|
||||||
|
@ -151,7 +151,6 @@ class BaseInstalledWidget(QGroupBox):
|
||||||
self.game_utils.prepare_launch(self.game.app_name, offline, skip_version_check)
|
self.game_utils.prepare_launch(self.game.app_name, offline, skip_version_check)
|
||||||
|
|
||||||
def sync_finished(self, app_name):
|
def sync_finished(self, app_name):
|
||||||
if app_name == self.game.app_name:
|
|
||||||
self.syncing_cloud_saves = False
|
self.syncing_cloud_saves = False
|
||||||
|
|
||||||
def sync_game(self):
|
def sync_game(self):
|
||||||
|
|
|
@ -28,6 +28,7 @@ class InstalledIconWidget(BaseInstalledWidget):
|
||||||
self.layout.addWidget(self.image)
|
self.layout.addWidget(self.image)
|
||||||
|
|
||||||
self.game_utils.finished.connect(self.game_finished)
|
self.game_utils.finished.connect(self.game_finished)
|
||||||
|
self.game_utils.cloud_save_finished.connect(self.sync_finished)
|
||||||
|
|
||||||
self.title_label = QLabel(f"<h4>{self.game.app_title}</h4>")
|
self.title_label = QLabel(f"<h4>{self.game.app_title}</h4>")
|
||||||
self.title_label.setAutoFillBackground(False)
|
self.title_label.setAutoFillBackground(False)
|
||||||
|
@ -100,6 +101,12 @@ class InstalledIconWidget(BaseInstalledWidget):
|
||||||
elif e.button() == 2:
|
elif e.button() == 2:
|
||||||
pass # self.showMenu(e)
|
pass # self.showMenu(e)
|
||||||
|
|
||||||
|
def sync_finished(self, app_name):
|
||||||
|
if not app_name == self.game.app_name:
|
||||||
|
return
|
||||||
|
super().sync_finished(app_name)
|
||||||
|
self.leaveEvent(None)
|
||||||
|
|
||||||
def game_finished(self, app_name, error):
|
def game_finished(self, app_name, error):
|
||||||
if app_name != self.game.app_name:
|
if app_name != self.game.app_name:
|
||||||
return
|
return
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
from rare import shared
|
|
||||||
from rare.utils.extra_widgets import SideTabWidget
|
from rare.utils.extra_widgets import SideTabWidget
|
||||||
from .about import About
|
from .about import About
|
||||||
from .legendary import LegendarySettings
|
from .legendary import LegendarySettings
|
||||||
|
@ -24,4 +23,3 @@ class SettingsTab(SideTabWidget):
|
||||||
self.addTab(self.about, "About (!)" if self.about.update_available else "About")
|
self.addTab(self.about, "About (!)" if self.about.update_available else "About")
|
||||||
|
|
||||||
self.setCurrentIndex(0)
|
self.setCurrentIndex(0)
|
||||||
print(shared.api_results.saves)
|
|
||||||
|
|
Loading…
Reference in a new issue