mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-02 13:14:01 +00:00
Fixed OpenFilecommand::execute() to open files with errors (these errors in loading process are shown anyway).
This commit is contained in:
parent
3e8c38ad91
commit
e555f78996
@ -185,23 +185,20 @@ void OpenFileCommand::execute(Context* context)
|
||||
jthread_join(data->thread);
|
||||
|
||||
// Show any error
|
||||
if (fop->error) {
|
||||
if (fop->error)
|
||||
console.printf(fop->error);
|
||||
|
||||
Sprite *sprite = fop->sprite;
|
||||
if (sprite) {
|
||||
UIContext* context = UIContext::instance();
|
||||
|
||||
RecentFiles::addRecentFile(fop->filename);
|
||||
context->add_sprite(sprite);
|
||||
|
||||
set_sprite_in_more_reliable_editor(sprite);
|
||||
}
|
||||
else if (!fop_is_stop(fop))
|
||||
unrecent = true;
|
||||
}
|
||||
else {
|
||||
Sprite *sprite = fop->sprite;
|
||||
if (sprite) {
|
||||
UIContext* context = UIContext::instance();
|
||||
|
||||
RecentFiles::addRecentFile(fop->filename);
|
||||
context->add_sprite(sprite);
|
||||
|
||||
set_sprite_in_more_reliable_editor(sprite);
|
||||
}
|
||||
else if (!fop_is_stop(fop))
|
||||
unrecent = true;
|
||||
}
|
||||
|
||||
delete data->progress;
|
||||
jwidget_free(data->alert_window);
|
||||
|
Loading…
x
Reference in New Issue
Block a user