Example #1
0
 def on_checkbox_autostart_changed(state):
     if state:
         autostart_enable()
     else:
         autostart_disable()
Example #2
0
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()
Example #3
0
 def on_checkbox_autostart_changed(self, state):  # pylint:disable=no-self-use
     if state:
         autostart_enable()
     else:
         autostart_disable()