fix: arrancar amb el borde desactivat feia crash al activarlo
This commit is contained in:
@@ -948,11 +948,16 @@ static auto cmdKiosk(const std::vector<std::string>& args) -> std::string {
|
||||
|
||||
// EXIT / QUIT
|
||||
static auto cmdExit(const std::vector<std::string>& args) -> std::string {
|
||||
#ifdef __EMSCRIPTEN__
|
||||
(void)args;
|
||||
return "Not allowed in web version";
|
||||
#else
|
||||
if (Options::kiosk.enabled && (args.empty() || args[0] != "PLEASE")) {
|
||||
return "Not allowed in kiosk mode";
|
||||
}
|
||||
SceneManager::current = SceneManager::Scene::QUIT;
|
||||
return "Quitting...";
|
||||
#endif
|
||||
}
|
||||
|
||||
// SIZE
|
||||
|
||||
Reference in New Issue
Block a user