mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-31 18:48:50 -04:00
Added app-wide color warning when requests from everywhere are allowed
This commit is contained in:
parent
85f295c0c6
commit
acb67dc9a2
2 changed files with 12 additions and 1 deletions
|
@ -244,6 +244,10 @@ class Telemetry():
|
|||
self.screen.ids.telemetry_collector.text = ""
|
||||
self.app.sideband.config["telemetry_collector"] = None
|
||||
|
||||
run_ui_update = False
|
||||
if self.screen.ids.telemetry_allow_requests_from_anyone.active != self.app.sideband.config["telemetry_allow_requests_from_anyone"]:
|
||||
run_ui_update = True
|
||||
|
||||
self.app.sideband.config["telemetry_enabled"] = self.screen.ids.telemetry_enabled.active
|
||||
self.app.sideband.config["telemetry_send_to_collector"] = self.screen.ids.telemetry_send_to_collector.active
|
||||
self.app.sideband.config["telemetry_send_to_trusted"] = self.screen.ids.telemetry_send_to_trusted.active
|
||||
|
@ -264,6 +268,9 @@ class Telemetry():
|
|||
else:
|
||||
self.app.sideband.setstate("app.flags.last_telemetry", time.time())
|
||||
|
||||
if run_ui_update:
|
||||
self.app.set_ui_theme()
|
||||
|
||||
def telemetry_copy(self, sender=None):
|
||||
Clipboard.copy(str(self.app.sideband.get_telemetry()))
|
||||
self.app.sideband.update_telemetry()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue