mirror of https://github.com/odrling/Aegisub
Fix compilation on Linux
This commit is contained in:
parent
26361c5003
commit
afed3dca21
|
@ -80,7 +80,7 @@ struct recent_subtitle_entry : public Command {
|
|||
wxGetApp().NewProjectContext().project->LoadSubtitles(config::mru->GetEntry("Subtitle", id));
|
||||
#else
|
||||
if (c->subsController->TryToClose() == wxCANCEL) return;
|
||||
c->project->LoadSubtitles();
|
||||
c->project->LoadSubtitles(config::mru->GetEntry("Subtitle", id));
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
|
|
@ -244,7 +244,7 @@ struct subtitle_new final : public Command {
|
|||
#ifdef __APPLE__
|
||||
wxGetApp().NewProjectContext();
|
||||
#else
|
||||
if (is_okay_to_reuse_existing_window(c))
|
||||
if (is_okay_to_close_subtitles(c))
|
||||
c->project->CloseSubtitles();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue