mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-22 10:21:39 -07:00
Use more descriptive function name
CURA-4411
This commit is contained in:
parent
18e636f928
commit
5e970fa5a5
1 changed files with 2 additions and 2 deletions
|
|
@ -235,7 +235,7 @@ Rectangle
|
||||||
textRole: "name"
|
textRole: "name"
|
||||||
|
|
||||||
// update the model's active index
|
// update the model's active index
|
||||||
function update () {
|
function updateItemActiveFlags () {
|
||||||
currentIndex = getActiveIndex()
|
currentIndex = getActiveIndex()
|
||||||
for (var i = 0; i < model.rowCount(); i++) {
|
for (var i = 0; i < model.rowCount(); i++) {
|
||||||
model.getItem(i).active = (i == currentIndex)
|
model.getItem(i).active = (i == currentIndex)
|
||||||
|
|
@ -265,7 +265,7 @@ Rectangle
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: UM.ActiveView
|
target: UM.ActiveView
|
||||||
onActiveViewChanged: viewModeButton.update()
|
onActiveViewChanged: viewModeButton.updateItemActiveFlags()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue