mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
Fix some enable/disable gadget logic
This commit is contained in:
parent
1acc32b3a9
commit
e98c220813
@ -1163,8 +1163,8 @@ static void ami_update_buttons(struct gui_window_2 *gwin)
|
||||
SetGadgetAttrs((struct Gadget *)gwin->objects[GID_STOP],
|
||||
gwin->win, NULL, GA_Disabled, stop, TAG_DONE);
|
||||
|
||||
if((gwin->tabs) && (ClickTabBase->lib_Version < 53))
|
||||
{
|
||||
if(ClickTabBase->lib_Version < 53) {
|
||||
if(gwin->tabs <= 1) tabclose = TRUE;
|
||||
GetAttr(GA_Disabled, gwin->objects[GID_CLOSETAB], (uint32 *)&storage);
|
||||
if(storage != tabclose)
|
||||
SetGadgetAttrs((struct Gadget *)gwin->objects[GID_CLOSETAB],
|
||||
|
Loading…
Reference in New Issue
Block a user