mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r17969) -Codechange: use the toolbar switch button lowered state as a way to tell which of the configurations it's showing
This commit is contained in:
parent
171fa9d16b
commit
f6e661a3d0
@ -779,7 +779,7 @@ static void ToolbarSwitchClick(Window *w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SplitToolbar(w);
|
SplitToolbar(w);
|
||||||
w->HandleButtonClick(TBN_SWITCHBAR);
|
w->SetWidgetLoweredState(TBN_SWITCHBAR, _toolbar_mode == TB_LOWER);
|
||||||
w->SetDirty();
|
w->SetDirty();
|
||||||
SndPlayFx(SND_15_BEEP);
|
SndPlayFx(SND_15_BEEP);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user