From f6e79e23f8f5db2439688bc5582a5f4c08a8ce26 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Fri, 4 Aug 2023 00:48:33 +0300 Subject: [PATCH] gui: Don't render keywidget before init --- src/gui/keywidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/keywidget.cpp b/src/gui/keywidget.cpp index eeed390f..bcf82475 100644 --- a/src/gui/keywidget.cpp +++ b/src/gui/keywidget.cpp @@ -295,6 +295,9 @@ void KeyWidget::bindMap(const BindMap& newBindMap){ } void KeyWidget::paintGL(){ + // Don't bother painting anything if the scale is 0 + if(drawInfoScale <= 0.f) + return; // Determine which keys to highlight QBitArray highlight; switch(mouseDownMode){