mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 03:00:58 -06:00
Disable edit button in the Launcher if we start with a built-in profile
This commit is contained in:
committed by
Alexander Bock
parent
9b35f45430
commit
49183b8f26
@@ -240,7 +240,9 @@ LauncherWindow::LauncherWindow(bool profileEnabled, const Configuration& globalC
|
||||
{
|
||||
// Set up the default value for the edit button
|
||||
std::string selection = std::get<1>(_profileBox->currentSelection());
|
||||
_editProfileButton->setEnabled(std::filesystem::exists(selection));
|
||||
const bool exists = std::filesystem::exists(selection);
|
||||
const bool isUser = selection.starts_with(_userProfilePath.string());
|
||||
_editProfileButton->setEnabled(isUser && exists);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user