Skip to content

Commit

Permalink
Merge pull request #12730 from JosJuice/skylanders-folder-no-asking
Browse files Browse the repository at this point in the history
DolphinQt: Don't ask user about creating Skylanders folder
  • Loading branch information
Tilka committed Apr 21, 2024
2 parents d3cf350 + a17331d commit ee027dc
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,8 @@ SkylanderPortalWindow::SkylanderPortalWindow(QWidget* parent) : QWidget(parent)
{
skylanders_folder = QDir(QString::fromStdString(Config::Get(Config::MAIN_SKYLANDERS_PATH)));
}
// prompt folder creation if path invalid
if (!skylanders_folder.exists())
{
QMessageBox::StandardButton create_folder_response;
create_folder_response =
QMessageBox::question(this, tr("Create Skylander Folder"),
tr("Skylanders folder not found for this user. Create new folder?"),
QMessageBox::Yes | QMessageBox::No);
if (create_folder_response == QMessageBox::Yes)
{
skylanders_folder = QDir(user_path);
Config::SetBase(Config::MAIN_SKYLANDERS_PATH, user_path.toStdString());
skylanders_folder.mkdir(skylanders_folder.path());
}
}
skylanders_folder.mkdir(skylanders_folder.path());

m_collection_path = QDir::toNativeSeparators(skylanders_folder.path()) + QDir::separator();
m_last_skylander_path = m_collection_path;
Expand Down

0 comments on commit ee027dc

Please sign in to comment.