1
0
Fork 0
forked from eden-emu/eden

service: am: Improve profile select applet

This commit is contained in:
Narr the Reg 2023-03-28 20:55:06 -06:00 committed by german77
parent 3b139a811e
commit 0585865c9f
8 changed files with 270 additions and 34 deletions

View file

@ -11,7 +11,8 @@ ProfileSelectApplet::~ProfileSelectApplet() = default;
void DefaultProfileSelectApplet::Close() const {}
void DefaultProfileSelectApplet::SelectProfile(SelectProfileCallback callback) const {
void DefaultProfileSelectApplet::SelectProfile(SelectProfileCallback callback,
const ProfileSelectParameters& parameters) const {
Service::Account::ProfileManager manager;
callback(manager.GetUser(Settings::values.current_user.GetValue()).value_or(Common::UUID{}));
LOG_INFO(Service_ACC, "called, selecting current user instead of prompting...");