mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Removed unused code, added ';' to end of lines. CURA-3574
This commit is contained in:
parent
61c4631270
commit
232f975092
1 changed files with 5 additions and 16 deletions
21
resources/qml/Sidebar.qml
Normal file → Executable file
21
resources/qml/Sidebar.qml
Normal file → Executable file
|
|
@ -408,17 +408,6 @@ Rectangle
|
||||||
}
|
}
|
||||||
ExclusiveGroup { id: modeMenuGroup; }
|
ExclusiveGroup { id: modeMenuGroup; }
|
||||||
|
|
||||||
/*
|
|
||||||
ListView{
|
|
||||||
id: modesList
|
|
||||||
property var index: 0
|
|
||||||
model: modesListModel
|
|
||||||
delegate: wizardDelegate
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
width: parent.width
|
|
||||||
}*/
|
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
id: toggleLeftText
|
id: toggleLeftText
|
||||||
|
|
@ -591,11 +580,11 @@ Rectangle
|
||||||
})
|
})
|
||||||
sidebarContents.push({ "item": modesListModel.get(base.currentModeIndex).item, "immediate": true });
|
sidebarContents.push({ "item": modesListModel.get(base.currentModeIndex).item, "immediate": true });
|
||||||
|
|
||||||
toggleLeftText.text = modesListModel.get(0).text
|
toggleLeftText.text = modesListModel.get(0).text;
|
||||||
toggleRightText.text = modesListModel.get(1).text
|
toggleRightText.text = modesListModel.get(1).text;
|
||||||
|
|
||||||
var index = parseInt(UM.Preferences.getValue("cura/active_mode"))
|
var index = parseInt(UM.Preferences.getValue("cura/active_mode"));
|
||||||
if(index)
|
if (index)
|
||||||
{
|
{
|
||||||
currentModeIndex = index;
|
currentModeIndex = index;
|
||||||
modeToggleSwitch.checked = index > 0;
|
modeToggleSwitch.checked = index > 0;
|
||||||
|
|
@ -621,4 +610,4 @@ Rectangle
|
||||||
watchedProperties: [ "value" ]
|
watchedProperties: [ "value" ]
|
||||||
storeIndex: 0
|
storeIndex: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue