1.3.39, "Menu button closes" true: No menu from replay
Commit Message
Hi Klaus,
With 1.3.39 and "Menu button closes" set to true, the main menu doesn't
open if any replay control is active. The attached patch fixes this by
resetting a !IsOpen cControl to WasOpen=false.
Cheers,
Udo
Comments
Udo Richter wrote:
> With 1.3.39 and "Menu button closes" set to true, the main menu doesn't
> open if any replay control is active. The attached patch fixes this by
> resetting a !IsOpen cControl to WasOpen=false.
This slipped the 1.3.40 release somehow, but the attached patch still works.
Cheers,
Udo
2006/1/22, Udo Richter <udo_richter@gmx.de>:
> > With 1.3.39 and "Menu button closes" set to true, the main menu doesn't
> > open if any replay control is active. The attached patch fixes this by
> > resetting a !IsOpen cControl to WasOpen=false.
>
> This slipped the 1.3.40 release somehow, but the attached patch still works.
Just a remark: It seems, that in 1.3.41 this is still not fixed.
Joachim.
@@ -795,8 +795,12 @@
bool WasMenu = Interact && Interact->IsMenu();
if (Menu)
DELETE_MENU;
- else if (cControl::Control() && cOsd::IsOpen())
- cControl::Control()->Hide();
+ else if (cControl::Control()) {
+ if (cOsd::IsOpen())
+ cControl::Control()->Hide();
+ else
+ WasOpen = false;
+ }
if (!WasOpen || !WasMenu && !Setup.MenuButtonCloses)
Menu = new cMenuMain;
}