From 776c5b0dd00959bb80ff19540f0936a843933412 Mon Sep 17 00:00:00 2001 From: crueter Date: Mon, 8 Dec 2025 22:37:15 -0500 Subject: [PATCH] license headers Signed-off-by: crueter --- src/Eden/Native/LibQtCommon.h | 3 +++ src/qt_common/abstract/qt_progress_dialog.cpp | 3 +++ src/qt_common/util/content.cpp | 6 ------ src/yuzu/libqt_common.h | 3 +++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Eden/Native/LibQtCommon.h b/src/Eden/Native/LibQtCommon.h index 321e624f32..b4509a3f29 100644 --- a/src/Eden/Native/LibQtCommon.h +++ b/src/Eden/Native/LibQtCommon.h @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include "qt_common/abstract/qt_progress_dialog.h" diff --git a/src/qt_common/abstract/qt_progress_dialog.cpp b/src/qt_common/abstract/qt_progress_dialog.cpp index d28bbb55ae..bf77a4b75b 100644 --- a/src/qt_common/abstract/qt_progress_dialog.cpp +++ b/src/qt_common/abstract/qt_progress_dialog.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + #include "qt_progress_dialog.h" namespace QtCommon::Frontend { diff --git a/src/qt_common/util/content.cpp b/src/qt_common/util/content.cpp index 25952d3f7a..2abd0d5c6b 100644 --- a/src/qt_common/util/content.cpp +++ b/src/qt_common/util/content.cpp @@ -401,11 +401,8 @@ void ExportDataDir(FrontendCommon::DataManager::DataDir data_dir, tr("Exporting data. This may take a while..."), tr("Cancel"), 0, 100); progress->setTitle(tr("Exporting")); - progress->setWindowModality(Qt::WindowModal); progress->show(); - QGuiApplication::processEvents(); - auto progress_callback = [=](size_t total_size, size_t processed_size) { QMetaObject::invokeMethod(progress, "setValue", @@ -473,11 +470,8 @@ void ImportDataDir(FrontendCommon::DataManager::DataDir data_dir, tr("Importing data. This may take a while..."), tr("Cancel"), 0, 100); progress->setTitle(tr("Importing")); - progress->setWindowModality(Qt::WindowModal); progress->show(); - QGuiApplication::processEvents(); - // to prevent GUI mangling we have to run this in a thread as well QFuture delete_future = QtConcurrent::run([=]() { FrontendCommon::DataManager::ClearDir(data_dir, user_id); diff --git a/src/yuzu/libqt_common.h b/src/yuzu/libqt_common.h index 5151ef5030..bedbe1b69b 100644 --- a/src/yuzu/libqt_common.h +++ b/src/yuzu/libqt_common.h @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include "qt_common/abstract/qt_progress_dialog.h"