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));
|
wxGetApp().NewProjectContext().project->LoadSubtitles(config::mru->GetEntry("Subtitle", id));
|
||||||
#else
|
#else
|
||||||
if (c->subsController->TryToClose() == wxCANCEL) return;
|
if (c->subsController->TryToClose() == wxCANCEL) return;
|
||||||
c->project->LoadSubtitles();
|
c->project->LoadSubtitles(config::mru->GetEntry("Subtitle", id));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -244,7 +244,7 @@ struct subtitle_new final : public Command {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
wxGetApp().NewProjectContext();
|
wxGetApp().NewProjectContext();
|
||||||
#else
|
#else
|
||||||
if (is_okay_to_reuse_existing_window(c))
|
if (is_okay_to_close_subtitles(c))
|
||||||
c->project->CloseSubtitles();
|
c->project->CloseSubtitles();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue