summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-08 15:02:28 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-08 15:02:28 +0300
commitbf3e015c1a96b4bf147a2003b426568adfeb7e46 (patch)
treea191812382a9fd510fdaef3a1806966461d095cc /src
parent7dd1cdf9d5587e7ebc2a5c6203ad5d69e0d4e5d0 (diff)
Mobile: Fixed preference panels
Must disable the hidden panels.
Diffstat (limited to 'src')
-rw-r--r--src/ui/util.c4
1 files changed, 3 insertions, 1 deletions
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) {
1031 iWidget *button = pointer_Command(cmd); 1031 iWidget *button = pointer_Command(cmd);
1032 iWidget *panel = userData_Object(button); 1032 iWidget *panel = userData_Object(button);
1033 openMenu_Widget(panel, zero_I2()); 1033 openMenu_Widget(panel, zero_I2());
1034 setFlags_Widget(panel, disabled_WidgetFlag, iFalse);
1034// updateTextCStr_LabelWidget(findWidget_App("panel.back"), ); 1035// updateTextCStr_LabelWidget(findWidget_App("panel.back"), );
1035 return iTrue; 1036 return iTrue;
1036 } 1037 }
@@ -1045,6 +1046,7 @@ static iBool slidePanelHandler_(iWidget *d, const char *cmd) {
1045 iWidget *child = i.object; 1046 iWidget *child = i.object;
1046 if (!cmp_String(id_Widget(child), "panel") && isVisible_Widget(child)) { 1047 if (!cmp_String(id_Widget(child), "panel") && isVisible_Widget(child)) {
1047 closeMenu_Widget(child); 1048 closeMenu_Widget(child);
1049 setFlags_Widget(child, disabled_WidgetFlag, iTrue);
1048 setFocus_Widget(NULL); 1050 setFocus_Widget(NULL);
1049 updateTextCStr_LabelWidget(findWidget_App("panel.back"), "Back"); 1051 updateTextCStr_LabelWidget(findWidget_App("panel.back"), "Back");
1050 wasClosed = iTrue; 1052 wasClosed = iTrue;
@@ -1528,7 +1530,7 @@ void finalizeSheet_Widget(iWidget *sheet) {
1528 updateSheetPanelMetrics_(sheet); 1530 updateSheetPanelMetrics_(sheet);
1529 arrange_Widget(sheet->parent); 1531 arrange_Widget(sheet->parent);
1530 postCommand_App("widget.overflow"); /* with the correct dimensions */ 1532 postCommand_App("widget.overflow"); /* with the correct dimensions */
1531// printTree_Widget(sheet); 1533 printTree_Widget(sheet);
1532 } 1534 }
1533 else { 1535 else {
1534 arrange_Widget(sheet); 1536 arrange_Widget(sheet);