diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-12-09 20:39:10 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-12-09 20:39:10 +0000 |
commit | 02a4bfd375110c268837931a8714fab0dc154d50 (patch) | |
tree | 33aa215650f42aadb737572cbe356ea827e58293 /amiga/gui_options.c | |
parent | af8c3ef0c359a4c86531755659af7688e8b3f08e (diff) | |
download | netsurf-02a4bfd375110c268837931a8714fab0dc154d50.tar.gz netsurf-02a4bfd375110c268837931a8714fab0dc154d50.tar.bz2 |
Toggle the tab bar to the correct state if the option to always show it is changed and only one tab is currently open
Diffstat (limited to 'amiga/gui_options.c')
-rwxr-xr-x | amiga/gui_options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c index d4c119844..a84449eef 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -1450,6 +1450,7 @@ void ami_gui_opts_use(bool save) struct TextAttr *tattr; char *dot; bool rescan_fonts = false; + bool old_tab_always_show; SetWindowPointer(gow->win, WA_BusyPointer, TRUE, @@ -1689,12 +1690,17 @@ void ami_gui_opts_use(bool save) } GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_ALWAYS],(ULONG *)&data); + old_tab_always_show = nsoption_bool(tab_always_show); + if (data) { nsoption_set_bool(tab_always_show, true); } else { nsoption_set_bool(tab_always_show, false); } + if(old_tab_always_show != nsoption_bool(tab_always_show)) + ami_gui_tabs_toggle_all(); + GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_SEARCH_PROV],(ULONG *)&nsoption_int(search_provider)); search_web_provider_details(nsoption_int(search_provider)); search_web_retrieve_ico(false); |