From 6cf922f313cf15ac36ded4ebeea5db35588ed945 Mon Sep 17 00:00:00 2001 From: Michael Werle Date: Thu, 31 Aug 2023 20:34:04 +0900 Subject: [PATCH] fix: revert removing global textHeightFactorCheckBoxSize This variable is actually required for Flatpak builds, so revert removing it. But to avoid compiler warnings, guard it with a precompiler check. --- src/editor/TextEditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/editor/TextEditor.cpp b/src/editor/TextEditor.cpp index 0ef60a533..1a4b87731 100644 --- a/src/editor/TextEditor.cpp +++ b/src/editor/TextEditor.cpp @@ -43,6 +43,10 @@ QPixmap stagedUnstagedIcon(const bool &checked, const QColor &background, QRect(QPoint(0, 0), QSize(fontHeight - 2, fontHeight - 2))); } +#if defined(FLATPAK) +const float textHeightFactorCheckBoxSize = 2.0; +#endif + } // namespace extern LexerModule lmLPeg;