applets/profile_select: Use aliases for callbacks
Deduplicates callback definitions and situates it in one place.
This commit is contained in:
parent
e26c86a6e7
commit
a84676c2aa
4 changed files with 8 additions and 8 deletions
|
@ -9,8 +9,7 @@ namespace Core::Frontend {
|
|||
|
||||
ProfileSelectApplet::~ProfileSelectApplet() = default;
|
||||
|
||||
void DefaultProfileSelectApplet::SelectProfile(
|
||||
std::function<void(std::optional<Common::UUID>)> callback) const {
|
||||
void DefaultProfileSelectApplet::SelectProfile(SelectProfileCallback callback) 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...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue