parent
63696b9f5f
commit
7b8330f8f8
@ -45,6 +45,9 @@ int main(int argc, char **argv) {
|
||||
window.addView<hex::ViewTools>(dataProvider);
|
||||
window.addView<hex::ViewHelp>();
|
||||
|
||||
if (argc > 1)
|
||||
hex::View::postEvent(hex::Events::FileDropped, argv[1]);
|
||||
|
||||
window.loop();
|
||||
|
||||
return 0;
|
||||
|
@ -466,6 +466,8 @@ namespace hex {
|
||||
if (this->m_dataProvider->isAvailable())
|
||||
ProjectFile::setFilePath(path);
|
||||
|
||||
this->getWindowOpenState() = true;
|
||||
|
||||
View::postEvent(Events::FileLoaded);
|
||||
View::postEvent(Events::DataChanged);
|
||||
ProjectFile::markDirty();
|
||||
|
Loading…
Reference in New Issue
Block a user