From ace6a64161a51b868557ec307364700e5d2080a1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 9 Dec 2021 12:40:45 +0100 Subject: Fluid STR 3460.D: making dialog more interactive. --- fluid/shell_command.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'fluid/shell_command.cxx') diff --git a/fluid/shell_command.cxx b/fluid/shell_command.cxx index af7e0ef64..14e46ab05 100644 --- a/fluid/shell_command.cxx +++ b/fluid/shell_command.cxx @@ -342,13 +342,20 @@ void do_shell_command(Fl_Return_Button*, void*) { Fluid app settings are saved per user and per machine. */ void show_shell_window() { + update_shell_window(); + shell_window->hotspot(shell_command_input); + shell_window->show(); +} + +/** + Update the shell properties dialog box. + */ +void update_shell_window() { shell_command_input->value(g_shell_command); shell_savefl_button->value(g_shell_save_fl); shell_writecode_button->value(g_shell_save_code); shell_writemsgs_button->value(g_shell_save_strings); shell_use_fl_button->value(g_shell_use_fl_settings); - shell_window->hotspot(shell_command_input); - shell_window->show(); } /** -- cgit v1.2.3