Remove unuseful code
parent
50ca167167
commit
3aa1432d4c
|
@ -9,7 +9,7 @@ import gi
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
class ManjaroHello(Gtk.Window):
|
class ManjaroHello():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# App vars
|
# App vars
|
||||||
self.app = "manjaro-hello"
|
self.app = "manjaro-hello"
|
||||||
|
@ -66,7 +66,7 @@ class ManjaroHello(Gtk.Window):
|
||||||
# Set autostart switcher state
|
# Set autostart switcher state
|
||||||
self.builder.get_object("autostart").set_active(self.preferences["autostart"])
|
self.builder.get_object("autostart").set_active(self.preferences["autostart"])
|
||||||
|
|
||||||
self.window.show()
|
self.window.show_all()
|
||||||
|
|
||||||
def change_autostart(self, state):
|
def change_autostart(self, state):
|
||||||
if state and not os.path.isfile(self.autostart_path):
|
if state and not os.path.isfile(self.autostart_path):
|
||||||
|
@ -164,5 +164,6 @@ def get_lsb_information():
|
||||||
|
|
||||||
return lsb
|
return lsb
|
||||||
|
|
||||||
win = ManjaroHello()
|
if __name__ == "__main__":
|
||||||
|
ManjaroHello()
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
|
Loading…
Reference in New Issue