mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 07:09:02 +08:00
Change preference key to cura/show_list_of_objects
This commit is contained in:
parent
28172c9ad2
commit
961f6403ad
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user