From 5e970fa5a544b208aff24c5a87e3e9b7b45fd747 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Thu, 5 Oct 2017 15:08:06 +0200 Subject: [PATCH] Use more descriptive function name CURA-4411 --- resources/qml/Topbar.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } }