Browse Source

T466: Hide the search icon from printer setup

When in custom mode in the printer setup pane and a gcode file gets loaded
the search icon needs to disappear as well.
Reported by @GhostKeeper, and fix provided by @victor9999
Youness Alaoui 8 years ago
parent
commit
f095e9050f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/Sidebar.qml

+ 1 - 1
resources/qml/Sidebar.qml

@@ -385,7 +385,7 @@ Rectangle
         height: settingsModeSelection.height
         height: settingsModeSelection.height
         width: visible ? height : 0
         width: visible ? height : 0
 
 
-        visible: !monitoringPrint && modesListModel.get(base.currentModeIndex) != undefined && modesListModel.get(base.currentModeIndex).showFilterButton
+        visible: !monitoringPrint && !hideSettings && modesListModel.get(base.currentModeIndex) != undefined && modesListModel.get(base.currentModeIndex).showFilterButton
         opacity: visible ? 1 : 0
         opacity: visible ? 1 : 0
 
 
         onClicked: sidebarContents.currentItem.toggleFilterField()
         onClicked: sidebarContents.currentItem.toggleFilterField()