mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixes font selection window showing behind if 'window always on top' is
enabled.
This commit is contained in:
parent
ef2365e81a
commit
7f5b07a9f9
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,8 @@ QLayout *AppearancePage::createFontChanger()
|
|||
QObject::connect(button, &QPushButton::clicked, [=]() {
|
||||
QFontDialog dialog(app->fonts->getFont(singletons::FontManager::ChatMedium, 1.));
|
||||
|
||||
dialog.setWindowFlag(Qt::WindowStaysOnTopHint);
|
||||
|
||||
dialog.connect(&dialog, &QFontDialog::fontSelected, [=](const QFont &font) {
|
||||
app->fonts->chatFontFamily = font.family().toStdString();
|
||||
app->fonts->chatFontSize = font.pointSize();
|
||||
|
|
Loading…
Reference in a new issue