mirror of https://github.com/odrling/Aegisub
Update the title of the detached video dialog when videos are opened. Closes #1607.
This commit is contained in:
parent
0acec9c874
commit
b90a77c74b
|
@ -130,7 +130,9 @@ void DialogDetachedVideo::OnKeyDown(wxKeyEvent &evt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogDetachedVideo::OnVideoOpen() {
|
void DialogDetachedVideo::OnVideoOpen() {
|
||||||
if (!context->videoController->IsLoaded()) {
|
if (context->videoController->IsLoaded())
|
||||||
|
SetTitle(wxString::Format(_("Video: %s"), context->videoController->GetVideoName().filename().wstring()));
|
||||||
|
else {
|
||||||
Close();
|
Close();
|
||||||
OPT_SET("Video/Detached/Enabled")->SetBool(true);
|
OPT_SET("Video/Detached/Enabled")->SetBool(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue