mirror of https://github.com/OpenTTD/OpenTTD
(svn r24809) -Feature(ette) [FS#2632]: Consider engine preview windows always sticky, so non-shift mass-closure does not affect them.
parent
8872ed12ff
commit
2bb54f09d8
|
@ -64,6 +64,9 @@ struct EnginePreviewWindow : Window {
|
||||||
EnginePreviewWindow(const WindowDesc *desc, WindowNumber window_number) : Window()
|
EnginePreviewWindow(const WindowDesc *desc, WindowNumber window_number) : Window()
|
||||||
{
|
{
|
||||||
this->InitNested(desc, window_number);
|
this->InitNested(desc, window_number);
|
||||||
|
|
||||||
|
/* There is no way to recover the window; so disallow closure via DEL; unless SHIFT+DEL */
|
||||||
|
this->flags |= WF_STICKY;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
|
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
|
||||||
|
|
Loading…
Reference in New Issue