mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:19:04 +08:00
Removed unused code, added ';' to end of lines. CURA-3574
This commit is contained in:
parent
61c4631270
commit
232f975092
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; }
|
||||
|
||||
/*
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user