Removed unused code, added ';' to end of lines. CURA-3574

This commit is contained in:
Jack Ha 2017-04-19 10:28:16 +02:00
parent 61c4631270
commit 232f975092

17
resources/qml/Sidebar.qml Normal file → Executable file
View 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,10 +580,10 @@ 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;