Fix restart bug

This commit is contained in:
Rikka
2023-01-20 10:50:17 +08:00
parent 90fff773b2
commit 8f8691423b
+1 -2
View File
@@ -100,13 +100,12 @@ class General:
run(["waydroid", "container", "stop"])
def start(self):
if self.use_dbus:
if self.use_dbus and self.session:
DBusContainerService().Start(self.session)
else:
run(["systemctl", "restart", "waydroid-container.service"])
def restart(self):
if DBusContainerService().GetSession():
self.stop()
self.start()