diff --git a/gnoemoe/dialogs/gm-preferences-dialog.c b/gnoemoe/dialogs/gm-preferences-dialog.c index d36234a..2ff5609 100644 --- a/gnoemoe/dialogs/gm-preferences-dialog.c +++ b/gnoemoe/dialogs/gm-preferences-dialog.c @@ -403,6 +403,9 @@ on_gm_preferences_dialog_check_button_embed_editor_clicked( gm_options_get_int(options, "editor_needs_terminal")); } + gm_options_set_int(gm_app_options(gm_app_instance()), "editor_embed", + active); + gtk_widget_set_sensitive(gm_preferences_dialog_widget( "check_button_needs_terminal"), !active); } @@ -423,10 +426,8 @@ on_gm_preferences_dialog_check_button_alt_editor_clicked( FALSE); } - if (!active) { - gm_options_set(gm_app_options(gm_app_instance()), "editor_alternative", - "0"); - } + gm_options_set_int(gm_app_options(gm_app_instance()), "editor_alternative", + active); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "entry_alt_editor"), active);