mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Handle macOS Open with... correctly
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user