From bf3e015c1a96b4bf147a2003b426568adfeb7e46 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 8 Apr 2021 15:02:28 +0300 Subject: Mobile: Fixed preference panels Must disable the hidden panels. --- src/ui/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index 5656c2c0..60518fd4 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -1031,6 +1031,7 @@ static iBool slidePanelHandler_(iWidget *d, const char *cmd) { iWidget *button = pointer_Command(cmd); iWidget *panel = userData_Object(button); openMenu_Widget(panel, zero_I2()); + setFlags_Widget(panel, disabled_WidgetFlag, iFalse); // updateTextCStr_LabelWidget(findWidget_App("panel.back"), ); return iTrue; } @@ -1045,6 +1046,7 @@ static iBool slidePanelHandler_(iWidget *d, const char *cmd) { iWidget *child = i.object; if (!cmp_String(id_Widget(child), "panel") && isVisible_Widget(child)) { closeMenu_Widget(child); + setFlags_Widget(child, disabled_WidgetFlag, iTrue); setFocus_Widget(NULL); updateTextCStr_LabelWidget(findWidget_App("panel.back"), "Back"); wasClosed = iTrue; @@ -1528,7 +1530,7 @@ void finalizeSheet_Widget(iWidget *sheet) { updateSheetPanelMetrics_(sheet); arrange_Widget(sheet->parent); postCommand_App("widget.overflow"); /* with the correct dimensions */ -// printTree_Widget(sheet); + printTree_Widget(sheet); } else { arrange_Widget(sheet); -- cgit v1.2.3