Use `::Settings::Main::Id()` as fallback

This commit is contained in:
CrisMystik 2022-04-25 22:02:54 +02:00 committed by John Preston
parent fafbbb4996
commit ef8ecc546b
1 changed files with 2 additions and 1 deletions

View File

@ -453,6 +453,7 @@ bool ResolveSettings(
return ::Settings::Main::Id();
} else if (section == qstr("language")) {
ShowLanguagesBox();
return {};
} else if (section == qstr("devices")) {
controller->session().api().authorizations().reload();
return ::Settings::Sessions::Id();
@ -465,7 +466,7 @@ bool ResolveSettings(
} else if (section == qstr("change_number")) {
return ::Settings::ChangePhone::Id();
}
return {};
return ::Settings::Main::Id();
}();
if (type.has_value()) {