*/}}
Browse Source

full screen button responsive

YimingWu 2 years ago
parent
commit
7552daa314
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/la_templates.c

+ 2 - 2
resources/la_templates.c

@@ -572,9 +572,9 @@ void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actins
             }
         laEndCondition(uil, b1);
         b1=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.is_fullscreen"));{
-            laShowItemFull(uil,c,0,"LA_fullscreen",0,"restore=true;text=Restore;icon=🡷",0,0);
+            laShowItemFull(uil,c,0,"LA_fullscreen",0,"restore=true;text=Restore;icon=🡷",0,0)->Flags|=LA_UI_FLAGS_EXIT_WHEN_TRIGGERED;
         }laElse(uil,b1);{
-            laShowItemFull(uil,c,0,"LA_fullscreen",0,0,0,0);
+            laShowItemFull(uil,c,0,"LA_fullscreen",0,0,0,0)->Flags|=LA_UI_FLAGS_EXIT_WHEN_TRIGGERED;
         }laEndCondition(uil, b1);
 
     }laEndCondition(uil,bb);