Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
Possible font fix for Windows (issue introduced when we moved the font widget to properties).
  • Loading branch information
rodlie committed Oct 14, 2024
1 parent 63e2533 commit 218cc31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
//#include <QScreen>
#include <QMessageBox>
#include <QSplashScreen>
#include <QFontDatabase>

#include <libavutil/ffversion.h>

Expand Down Expand Up @@ -369,6 +370,13 @@ int main(int argc, char *argv[])
}
#endif

splash.raise();
splash.showMessage(QObject::tr("Setup fonts"),
Qt::AlignLeft | Qt::AlignBottom, Qt::white);
QFontDatabase fonts;
const auto families = fonts.families();
qDebug() << "Found fonts:" << families.count();

const QString openProject = argc > 1 ? argv[1] : QString();
MainWindow w(document,
actions,
Expand Down

0 comments on commit 218cc31

Please sign in to comment.