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