summaryrefslogtreecommitdiff
path: root/widgets/ZamWidgets.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/ZamWidgets.hpp')
-rw-r--r--widgets/ZamWidgets.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/ZamWidgets.hpp b/widgets/ZamWidgets.hpp
index b45d74d..d2549be 100644
--- a/widgets/ZamWidgets.hpp
+++ b/widgets/ZamWidgets.hpp
@@ -740,12 +740,11 @@ bool ZamSwitch::onMouse(const MouseEvent& ev)
if (ev.press && contains(ev.pos))
{
fIsDown = true;
+ repaint();
if (fCallback != nullptr)
fCallback->imageSwitchClicked(this, true);
- repaint();
-
return true;
}