We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9542a71 commit 312f5cbCopy full SHA for 312f5cb
apps/aviaryui/src/main.py
@@ -117,6 +117,11 @@ def on_toggle_livestream_action(self, *args):
117
# TODO figure out how to just bind this to a toggle
118
# And not do this stupid shit
119
new_state = not action.get_state()
120
+ # TODO do an async I/O call
121
+ # Caution for development: this file gets written to the Flatpak's /tmp!
122
+ # Don't be surprised if you don't see this file in the host /tmp.
123
+ with open('/tmp/aviaryui-state', 'w+') as f:
124
+ f.write(str(new_state) + '\n')
125
action.change_state(GLib.Variant.new_boolean(new_state))
126
127
status_label = self.props.active_window.status_label
0 commit comments