mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 08:45:45 +00:00
profile_manager: Use std::optional instead of boost::optional
Now that we can actually use std::optional on macOS, we don't need to continue using boost::optional here.
This commit is contained in:
parent
393d92efce
commit
94daae2847
5 changed files with 53 additions and 48 deletions
|
@ -153,7 +153,7 @@ void ConfigureSystem::UpdateCurrentUser() {
|
|||
ui->pm_add->setEnabled(profile_manager->GetUserCount() < Service::Account::MAX_USERS);
|
||||
|
||||
const auto& current_user = profile_manager->GetUser(Settings::values.current_user);
|
||||
ASSERT(current_user != boost::none);
|
||||
ASSERT(current_user != std::nullopt);
|
||||
const auto username = GetAccountUsername(*current_user);
|
||||
|
||||
scene->clear();
|
||||
|
@ -252,7 +252,7 @@ void ConfigureSystem::AddUser() {
|
|||
void ConfigureSystem::RenameUser() {
|
||||
const auto user = tree_view->currentIndex().row();
|
||||
const auto uuid = profile_manager->GetUser(user);
|
||||
ASSERT(uuid != boost::none);
|
||||
ASSERT(uuid != std::nullopt);
|
||||
const auto username = GetAccountUsername(*uuid);
|
||||
|
||||
Service::Account::ProfileBase profile;
|
||||
|
@ -292,7 +292,7 @@ void ConfigureSystem::RenameUser() {
|
|||
void ConfigureSystem::DeleteUser() {
|
||||
const auto index = tree_view->currentIndex().row();
|
||||
const auto uuid = profile_manager->GetUser(index);
|
||||
ASSERT(uuid != boost::none);
|
||||
ASSERT(uuid != std::nullopt);
|
||||
const auto username = GetAccountUsername(*uuid);
|
||||
|
||||
const auto confirm =
|
||||
|
@ -320,7 +320,7 @@ void ConfigureSystem::DeleteUser() {
|
|||
void ConfigureSystem::SetUserImage() {
|
||||
const auto index = tree_view->currentIndex().row();
|
||||
const auto uuid = profile_manager->GetUser(index);
|
||||
ASSERT(uuid != boost::none);
|
||||
ASSERT(uuid != std::nullopt);
|
||||
const auto username = GetAccountUsername(*uuid);
|
||||
|
||||
const auto file = QFileDialog::getOpenFileName(this, tr("Select User Image"), QString(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue