*/}}
Jelajahi Sumber

minor ui fix in saver

YimingWu 3 hari lalu
induk
melakukan
c7e18b975e
2 mengubah file dengan 7 tambahan dan 1 penghapusan
  1. 5 1
      la_kernel.c
  2. 2 0
      resources/la_widgets.c

+ 5 - 1
la_kernel.c

@@ -5736,7 +5736,11 @@ laUiList* la_GiveExistingPage(laListHandle* from, void* instance){
 void la_SwitchThemeQuick(laTheme* t, laTheme* DefaultTheme);
 int laget_Hyper2InstanceModified(void* instance){
     int level; laMemNodeHyper* m=memGetHead(instance,&level);
-    if(level==2) return m->Modified?1:0;
+    if(level==2){
+        laManagedUDF* mu=m->FromFile;
+        int not_assigned = (!mu) || mu==MAIN.DummyManageUDF|| mu==MAIN.DummyManageUDFSingle || mu==MAIN.DummyManageUDFSingleForce;
+        return (m->Modified||not_assigned)?1:0;
+    }
     return 1;
 }
 int la_UpdateUiListRecursive(laUiList *uil, int U, int L, int R, int B, int Fast, laPanel *ParentPanel){

+ 2 - 0
resources/la_widgets.c

@@ -404,6 +404,8 @@ void la_CollectionSelectorDraw(laUiItem *ui, int h){
 
     if (CrossDraw){
         tnsDrawStringAuto("🧹", laThemeColor(bt,ui->State|LA_BT_TEXT), ui->R - LA_RH, ui->R, ui->U, 0);
+    }else{
+        tnsDrawStringAuto("?", laThemeColor(bt, LA_BT_BORDER), ui->L, ui->L+LA_RH, ui->U, LA_TEXT_ALIGN_CENTER);
     }
     if(Simple){
         int R=ui->R; if(ui->Expand || (ui->Flags&LA_UI_FLAGS_EXPAND)){