From 764422f2c0f2ed58f28b9c52ffe5fd8389b532e2 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Sat, 12 Feb 2022 17:54:39 +0200 Subject: [PATCH] qt: Set AppUserModelID so 86Box groups with 86BoxManager in task bar --- src/qt/qt_mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index dbcc48e96..d7c25ebfa 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -67,6 +67,10 @@ extern "C" { #include #include +#ifdef Q_OS_WINDOWS +#include +#endif + #include "qt_settings.hpp" #include "qt_machinestatus.hpp" #include "qt_mediamenu.hpp" @@ -90,6 +94,8 @@ MainWindow::MainWindow(QWidget *parent) : ui(new Ui::MainWindow) { #ifdef Q_OS_WINDOWS + SetCurrentProcessExplicitAppUserModelID(L"86Box.86Box"); + auto font_name = tr("FONT_NAME"); auto font_size = tr("FONT_SIZE"); QApplication::setFont(QFont(font_name, font_size.toInt()));