Refactor the code
This commit is contained in:
parent
195bfabbbb
commit
de47d8e638
|
@ -22,7 +22,7 @@ from gi.repository import Gtk, Gdk, GdkX11
|
|||
|
||||
class SettingsDialog:
|
||||
"""docstring for SettingsDialog"""
|
||||
def __init__(self, language, config, on_save_settings, glade_file):
|
||||
def __init__(self, config, language, on_save_settings, glade_file):
|
||||
self.config = config
|
||||
self.on_save_settings = on_save_settings
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ system_language_directory = os.path.join(bin_directory, "config/lang")
|
|||
is_active = True
|
||||
|
||||
def show_settings():
|
||||
settings_dialog = SettingsDialog(language, config, save_settings, settings_dialog_glade)
|
||||
settings_dialog = SettingsDialog(config, language, save_settings, settings_dialog_glade)
|
||||
settings_dialog.show()
|
||||
|
||||
def show_notification():
|
||||
|
@ -176,7 +176,7 @@ def main():
|
|||
core.start()
|
||||
notification = Notification(language)
|
||||
|
||||
# handle_system_suspend()
|
||||
handle_system_suspend()
|
||||
|
||||
Gtk.main()
|
||||
|
||||
|
|
Loading…
Reference in New Issue