Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[desktop] Disable generate UUID button when editing user (#3428)

crueter7b537f6b727b
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1bd5d75b4..e4790356c0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(DetectPlatform)
include(DetectArchitecture)
diff --git a/src/dynarmic/CMakeLists.txt b/src/dynarmic/CMakeLists.txt
index 1558d76b35..fc22f073f7 100644
--- a/src/dynarmic/CMakeLists.txt
+++ b/src/dynarmic/CMakeLists.txt
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
cmake_minimum_required(VERSION 3.12)
@@ -112,7 +112,10 @@ else()
endif()
endif()
-find_package(Boost 1.57 REQUIRED)
+if (NOT Boost_FOUND)
+ find_package(Boost 1.57 REQUIRED)
+endif()
+
find_package(fmt 8 CONFIG)
find_package(mcl 0.1.12 REQUIRED)
diff --git a/src/yuzu/configuration/system/new_user_dialog.cpp b/src/yuzu/configuration/system/new_user_dialog.cpp
index f745de6e96..1bbb3b0612 100644
--- a/src/yuzu/configuration/system/new_user_dialog.cpp
+++ b/src/yuzu/configuration/system/new_user_dialog.cpp
@@ -86,6 +86,8 @@ void NewUserDialog::setup(Common::UUID uuid, const std::string& username, const
ui->uuid->setReadOnly(true);
}
+ ui->generate->setDisabled(m_editing);
+
ui->username->setText(QString::fromStdString(username));
verifyUser();