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

21
resources/qml/Sidebar.qml Normal file → Executable file
View file

@ -408,17 +408,6 @@ Rectangle
}
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
{
id: toggleLeftText
@ -591,11 +580,11 @@ Rectangle
})
sidebarContents.push({ "item": modesListModel.get(base.currentModeIndex).item, "immediate": true });
toggleLeftText.text = modesListModel.get(0).text
toggleRightText.text = modesListModel.get(1).text
toggleLeftText.text = modesListModel.get(0).text;
toggleRightText.text = modesListModel.get(1).text;
var index = parseInt(UM.Preferences.getValue("cura/active_mode"))
if(index)
var index = parseInt(UM.Preferences.getValue("cura/active_mode"));
if (index)
{
currentModeIndex = index;
modeToggleSwitch.checked = index > 0;
@ -621,4 +610,4 @@ Rectangle
watchedProperties: [ "value" ]
storeIndex: 0
}
}
}