diff --git a/resources/qml/Topbar.qml b/resources/qml/Topbar.qml index 556b627394..35f6aa7c3e 100644 --- a/resources/qml/Topbar.qml +++ b/resources/qml/Topbar.qml @@ -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() } }