always recreate objects

This commit is contained in:
Bilal Elmoussaoui 2017-01-10 06:56:39 +01:00
parent 570dd873fc
commit d3952fa34e

View file

@ -26,7 +26,6 @@ from gettext import gettext as _
import logging
class SettingsWindow(Gtk.Window):
main_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
def __init__(self, parent):
self.parent = parent
@ -36,6 +35,7 @@ class SettingsWindow(Gtk.Window):
self.auto_lock_switch = Gtk.CheckButton()
self.password_button = Gtk.Button()
self.hb = Gtk.HeaderBar()
self.main_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.generate_window()
self.generate_components()