summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-09-23 00:10:36 +0200
committerLioncash <mathew1800@gmail.com>2021-09-23 00:10:39 +0200
commit091e1411422c62ef358c8d3750a92735858b1a61 (patch)
tree5ef9b46de26525aefcb4759a9ad34ae46872b5e1
parentcommon/uuid: Add validity checking functions to interface (diff)
downloadyuzu-091e1411422c62ef358c8d3750a92735858b1a61.tar
yuzu-091e1411422c62ef358c8d3750a92735858b1a61.tar.gz
yuzu-091e1411422c62ef358c8d3750a92735858b1a61.tar.bz2
yuzu-091e1411422c62ef358c8d3750a92735858b1a61.tar.lz
yuzu-091e1411422c62ef358c8d3750a92735858b1a61.tar.xz
yuzu-091e1411422c62ef358c8d3750a92735858b1a61.tar.zst
yuzu-091e1411422c62ef358c8d3750a92735858b1a61.zip
-rw-r--r--src/core/frontend/applets/profile_select.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/frontend/applets/profile_select.cpp b/src/core/frontend/applets/profile_select.cpp
index 4c58c310f..3e4f90be2 100644
--- a/src/core/frontend/applets/profile_select.cpp
+++ b/src/core/frontend/applets/profile_select.cpp
@@ -13,7 +13,8 @@ ProfileSelectApplet::~ProfileSelectApplet() = default;
void DefaultProfileSelectApplet::SelectProfile(
std::function<void(std::optional<Common::UUID>)> callback) const {
Service::Account::ProfileManager manager;
- callback(manager.GetUser(Settings::values.current_user.GetValue()).value_or(Common::UUID{}));
+ callback(manager.GetUser(Settings::values.current_user.GetValue())
+ .value_or(Common::UUID{Common::INVALID_UUID}));
LOG_INFO(Service_ACC, "called, selecting current user instead of prompting...");
}