diff --git a/src/common/darktable.c b/src/common/darktable.c index 2bb0c49a4e2e..d6748b01cf5a 100644 --- a/src/common/darktable.c +++ b/src/common/darktable.c @@ -1573,8 +1573,6 @@ int dt_init(int argc, char *argv[], const gboolean init_gui, const gboolean load darktable.lib = (dt_lib_t *)calloc(1, sizeof(dt_lib_t)); dt_lib_init(darktable.lib); - dt_gui_gtk_load_config(); - // init the gui part of views dt_view_manager_gui_init(darktable.view_manager); diff --git a/src/gui/gtk.c b/src/gui/gtk.c index 90512705f687..eca7de6bafe0 100644 --- a/src/gui/gtk.c +++ b/src/gui/gtk.c @@ -1499,6 +1499,7 @@ static void _init_widgets(dt_gui_gtk_t *gui) g_signal_connect(G_OBJECT(widget), "delete_event", G_CALLBACK(dt_gui_quit_callback), NULL); g_signal_connect(G_OBJECT(widget), "focus-in-event", G_CALLBACK(_focus_in_out_event), widget); g_signal_connect(G_OBJECT(widget), "focus-out-event", G_CALLBACK(_focus_in_out_event), widget); + g_signal_connect(G_OBJECT(widget), "map", G_CALLBACK(dt_gui_gtk_load_config), widget); container = widget;