commit
This commit is contained in:
parent
7a7a66af53
commit
21d57f76fd
@ -133,17 +133,20 @@ class Application:
|
|||||||
hid_switch.set_active(True)
|
hid_switch.set_active(True)
|
||||||
else:
|
else:
|
||||||
hid_switch.set_active(False)
|
hid_switch.set_active(False)
|
||||||
|
pop_switch = self.builder.get_object("pop_switch")
|
||||||
pop_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep pop-shell@system76.com"], shell=True, stdout=subprocess.DEVNULL)
|
pop_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep pop-shell@system76.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||||
if (pop_output.returncode) == 0:
|
if (pop_output.returncode) == 0:
|
||||||
pop_switch.set_active(True)
|
pop_switch.set_active(True)
|
||||||
else:
|
else:
|
||||||
pop_switch.set_active(False)
|
pop_switch.set_active(False)
|
||||||
|
gamemode_switch = self.builder.get_object("gamemode_switch")
|
||||||
gamemode_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep gamemode@christian.kellner.me"], shell=True, stdout=subprocess.DEVNULL)
|
gamemode_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep gamemode@christian.kellner.me"], shell=True, stdout=subprocess.DEVNULL)
|
||||||
if (gamemode_output.returncode) == 0:
|
if (gamemode_output.returncode) == 0:
|
||||||
gamemode_switch.set_active(True)
|
gamemode_switch.set_active(True)
|
||||||
else:
|
else:
|
||||||
gamemode_switch.set_active(False)
|
gamemode_switch.set_active(False)
|
||||||
time.sleep(5.0)
|
|
||||||
|
time.sleep(5.0)
|
||||||
t1 = threading.Thread(target=extension_refresh_func)
|
t1 = threading.Thread(target=extension_refresh_func)
|
||||||
t1.start()
|
t1.start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user