Skip to content

Commit

Permalink
fix: revert removing global textHeightFactorCheckBoxSize
Browse files Browse the repository at this point in the history
This variable is actually required for Flatpak builds, so revert removing it. But to avoid compiler warnings, guard it with a precompiler check.
  • Loading branch information
mwerle committed Aug 31, 2023
1 parent fb9a799 commit 6cf922f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/editor/TextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6cf922f

Please sign in to comment.