mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06: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"
|
||||
|
||||
// update the model's active index
|
||||
function update () {
|
||||
function updateItemActiveFlags () {
|
||||
currentIndex = getActiveIndex()
|
||||
for (var i = 0; i < model.rowCount(); i++) {
|
||||
model.getItem(i).active = (i == currentIndex)
|
||||
|
@ -265,7 +265,7 @@ Rectangle
|
|||
Connections
|
||||
{
|
||||
target: UM.ActiveView
|
||||
onActiveViewChanged: viewModeButton.update()
|
||||
onActiveViewChanged: viewModeButton.updateItemActiveFlags()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue