def on_checkbox_autostart_changed(state): if state: autostart_enable() else: autostart_disable()
def test_autostart_disable(tmpfile, monkeypatch): monkeypatch.setattr('gridsync.desktop.autostart_file_path', tmpfile) with open(tmpfile, 'a'): os.utime(tmpfile, None) autostart_disable() assert not autostart_is_enabled()
def on_checkbox_autostart_changed(self, state): # pylint:disable=no-self-use if state: autostart_enable() else: autostart_disable()