diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 706e136d53..2b0c75bc6c 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -523,7 +523,7 @@ class CuraApplication(QtApplication): preferences.addPreference("cura/choice_on_profile_override", "always_ask") preferences.addPreference("cura/choice_on_open_project", "always_ask") preferences.addPreference("cura/use_multi_build_plate", False) - preferences.addPreference("cura/show_list_of_files", False) + preferences.addPreference("cura/show_list_of_objects", False) preferences.addPreference("view/settings_list_height", 400) preferences.addPreference("view/settings_visible", False) preferences.addPreference("view/settings_xpos", 0) diff --git a/resources/qml/ObjectItemButton.qml b/resources/qml/ObjectItemButton.qml index 82b02012e8..683d0ed52b 100644 --- a/resources/qml/ObjectItemButton.qml +++ b/resources/qml/ObjectItemButton.qml @@ -1,8 +1,8 @@ // Copyright (c) 2018 Ultimaker B.V. // Cura is released under the terms of the LGPLv3 or higher. -import QtQuick 2.7 -import QtQuick.Controls 2.1 +import QtQuick 2.10 +import QtQuick.Controls 2.3 import UM 1.1 as UM import Cura 1.0 as Cura diff --git a/resources/qml/ObjectSelector.qml b/resources/qml/ObjectSelector.qml index 82bbec7f78..3b7f3455b3 100644 --- a/resources/qml/ObjectSelector.qml +++ b/resources/qml/ObjectSelector.qml @@ -1,7 +1,7 @@ // Copyright (c) 2019 Ultimaker B.V. // Cura is released under the terms of the LGPLv3 or higher. -import QtQuick 2.7 +import QtQuick 2.10 import QtQuick.Controls 2.3 import UM 1.2 as UM @@ -11,7 +11,7 @@ Item { id: objectSelector width: UM.Theme.getSize("objects_menu_size").width - property bool opened: UM.Preferences.getValue("cura/show_list_of_files") + property bool opened: UM.Preferences.getValue("cura/show_list_of_objects") Button { @@ -61,8 +61,8 @@ Item onClicked: { - UM.Preferences.setValue("cura/show_list_of_files", !objectSelector.opened) - objectSelector.opened = UM.Preferences.getValue("cura/show_list_of_files") + UM.Preferences.setValue("cura/show_list_of_objects", !objectSelector.opened) + objectSelector.opened = UM.Preferences.getValue("cura/show_list_of_objects") } }