summaryrefslogtreecommitdiff
path: root/src/core/frontend/applets
diff options
context:
space:
mode:
authorGravatar bunnei2022-02-10 21:52:13 -0700
committerGravatar GitHub2022-02-10 21:52:13 -0700
commitca9da569ce8d5ce8106ff69afce484d9516570a8 (patch)
treedb8f98fcfcd3d3d77f77c52b3be696c073f90f6e /src/core/frontend/applets
parentMerge pull request #7861 from german77/user_features (diff)
parentcommon: uuid: Use sizeof(u64) instead of 8 in Hash() (diff)
downloadyuzu-ca9da569ce8d5ce8106ff69afce484d9516570a8.tar.gz
yuzu-ca9da569ce8d5ce8106ff69afce484d9516570a8.tar.xz
yuzu-ca9da569ce8d5ce8106ff69afce484d9516570a8.zip
Merge pull request #7852 from Morph1984/new-uuid
common: Revise and fix the UUID implementation
Diffstat (limited to 'src/core/frontend/applets')
-rw-r--r--src/core/frontend/applets/profile_select.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/frontend/applets/profile_select.cpp b/src/core/frontend/applets/profile_select.cpp
index 3e4f90be2..4c58c310f 100644
--- a/src/core/frontend/applets/profile_select.cpp
+++ b/src/core/frontend/applets/profile_select.cpp
@@ -13,8 +13,7 @@ ProfileSelectApplet::~ProfileSelectApplet() = default;
13void DefaultProfileSelectApplet::SelectProfile( 13void DefaultProfileSelectApplet::SelectProfile(
14 std::function<void(std::optional<Common::UUID>)> callback) const { 14 std::function<void(std::optional<Common::UUID>)> callback) const {
15 Service::Account::ProfileManager manager; 15 Service::Account::ProfileManager manager;
16 callback(manager.GetUser(Settings::values.current_user.GetValue()) 16 callback(manager.GetUser(Settings::values.current_user.GetValue()).value_or(Common::UUID{}));
17 .value_or(Common::UUID{Common::INVALID_UUID}));
18 LOG_INFO(Service_ACC, "called, selecting current user instead of prompting..."); 17 LOG_INFO(Service_ACC, "called, selecting current user instead of prompting...");
19} 18}
20 19