Browse Source
license headers
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3016/head
crueter
2 weeks ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
4 changed files with
9 additions and
6 deletions
-
src/Eden/Native/LibQtCommon.h
-
src/qt_common/abstract/qt_progress_dialog.cpp
-
src/qt_common/util/content.cpp
-
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" |
|
|
|
|
|
|
|
@ -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 { |
|
|
|
|
|
|
|
@ -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<bool> delete_future = QtConcurrent::run([=]() { |
|
|
|
FrontendCommon::DataManager::ClearDir(data_dir, user_id); |
|
|
|
|
|
|
|
@ -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" |
|
|
|
|