Просмотр исходного кода

Make the menu separator only show if there are quality changes profiles

Diego Prado Gesto 7 лет назад
Родитель
Сommit
b7093e8b57
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      resources/qml/Menus/ProfileMenu.qml

+ 5 - 1
resources/qml/Menus/ProfileMenu.qml

@@ -29,7 +29,11 @@ Menu
         onObjectRemoved: menu.removeItem(object);
     }
 
-    MenuSeparator { id: customSeparator }
+    MenuSeparator
+    {
+        id: customSeparator
+        visible: Cura.UserProfilesModel.rowCount > 0
+    }
 
     Instantiator
     {