mirror of
https://github.com/markqvist/Sideband.git
synced 2026-04-27 14:20:38 +00:00
Background data persist on app pause on Android
This commit is contained in:
parent
e798bac4c7
commit
cd323c9ca8
2 changed files with 3 additions and 5 deletions
|
|
@ -1063,7 +1063,7 @@ class SidebandApp(MDApp):
|
|||
self.sideband.setstate("app.running", True)
|
||||
self.sideband.setstate("app.foreground", False)
|
||||
self.app_state = SidebandApp.PAUSED
|
||||
self.sideband.should_persist_data()
|
||||
self.sideband.should_persist_data(background=True)
|
||||
RNS.log("App paused", RNS.LOG_DEBUG)
|
||||
return True
|
||||
|
||||
|
|
|
|||
|
|
@ -580,10 +580,8 @@ class SidebandCore():
|
|||
total += entry.stat(follow_symlinks=False).st_size
|
||||
return total
|
||||
|
||||
def should_persist_data(self):
|
||||
if self.reticulum != None:
|
||||
self.reticulum._should_persist_data()
|
||||
|
||||
def should_persist_data(self, background=False):
|
||||
if self.reticulum != None: self.reticulum._should_persist_data(background=background)
|
||||
self.save_configuration()
|
||||
|
||||
def __load_telemetry_collector_excluded(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue