fix exit to project selection in map selection
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Noggit::Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BlizzardArchive::ClientData* clientData() { return _client_data.get(); }
|
BlizzardArchive::ClientData* clientData() { return _client_data.get(); }
|
||||||
bool hasClientData() { return _client_data != nullptr; }
|
bool hasClientData() const { return _client_data != nullptr; }
|
||||||
void setClientData(std::shared_ptr<BlizzardArchive::ClientData> data) { _client_data = data; }
|
void setClientData(std::shared_ptr<BlizzardArchive::ClientData> data) { _client_data = data; }
|
||||||
|
|
||||||
void initalize(int argc, char* argv[], std::vector<bool> Parser);
|
void initalize(int argc, char* argv[], std::vector<bool> Parser);
|
||||||
|
|||||||
@@ -481,7 +481,14 @@ namespace Noggit::Ui::Windows
|
|||||||
promptExit(event);
|
promptExit(event);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
event->accept();
|
if (exit_to_project_selection)
|
||||||
|
{
|
||||||
|
auto noggit = Noggit::Application::NoggitApplication::instance();
|
||||||
|
auto project_selection = new Noggit::Ui::Windows::NoggitProjectSelectionWindow(noggit);
|
||||||
|
project_selection->show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
event->accept();
|
||||||
}
|
}
|
||||||
exit_to_project_selection = false;
|
exit_to_project_selection = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user