bug fix: crashed when opening the preferences screen with no settings because gtk.main() was before xflux_controller.start()