impr: Handle macOS Open with... correctly

This commit is contained in:
WerWolv
2023-05-15 18:07:49 +02:00
parent 07565eea63
commit 14341d611d
3 changed files with 13 additions and 1 deletions

View File

@@ -70,6 +70,11 @@ int main(int argc, char **argv, char **envp) {
}
}
// Open file that has been requested to be opened through other, OS-specific means
if (auto path = hex::getInitialFilePath(); path.has_value()) {
EventManager::post<RequestOpenFile>(path.value());
}
// Render the main window
window.loop();
}