mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:29:02 +08:00
Use more descriptive function name
CURA-4411
This commit is contained in:
parent
18e636f928
commit
5e970fa5a5
@ -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…
x
Reference in New Issue
Block a user