Add sidebar_collapse to the saved preferences, typos, move back machine selection to the top bar

CURA-4234
This commit is contained in:
Aleksei S 2017-12-12 11:26:17 +01:00
parent 00529f37d9
commit 6968c089db
5 changed files with 72 additions and 73 deletions

View file

@ -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;