mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add sidebar_collapse to the saved preferences, typos, move back machine selection to the top bar
CURA-4234
This commit is contained in:
parent
00529f37d9
commit
6968c089db
5 changed files with 72 additions and 73 deletions
|
|
@ -401,12 +401,12 @@ UM.MainWindow
|
|||
collapsSidebarAnimation.start();
|
||||
}
|
||||
collapsed = !collapsed;
|
||||
UM.Preferences.setValue("general/sidebar_collaps", collapsed);
|
||||
UM.Preferences.setValue("general/sidebar_collapse", collapsed);
|
||||
}
|
||||
|
||||
anchors
|
||||
{
|
||||
top: topbar.top
|
||||
top: topbar.bottom
|
||||
bottom: parent.bottom
|
||||
}
|
||||
|
||||
|
|
@ -419,7 +419,7 @@ UM.MainWindow
|
|||
target: sidebar
|
||||
properties: "x"
|
||||
to: base.width
|
||||
duration: 500
|
||||
duration: 100
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
|
|
@ -427,12 +427,12 @@ UM.MainWindow
|
|||
target: sidebar
|
||||
properties: "x"
|
||||
to: base.width - sidebar.width
|
||||
duration: 500
|
||||
duration: 100
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
var sidebarCollaps = UM.Preferences.getValue("general/sidebar_collaps")
|
||||
var sidebarCollaps = UM.Preferences.getValue("general/sidebar_collapse")
|
||||
|
||||
if (sidebarCollaps == true){
|
||||
sidebar.collapsed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue