forked from mia/Aegisub
Update the title of the detached video dialog when videos are opened. Closes #1607.
This commit is contained in:
parent
0acec9c874
commit
b90a77c74b
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ void DialogDetachedVideo::OnKeyDown(wxKeyEvent &evt) {
|
|||
}
|
||||
|
||||
void DialogDetachedVideo::OnVideoOpen() {
|
||||
if (!context->videoController->IsLoaded()) {
|
||||
if (context->videoController->IsLoaded())
|
||||
SetTitle(wxString::Format(_("Video: %s"), context->videoController->GetVideoName().filename().wstring()));
|
||||
else {
|
||||
Close();
|
||||
OPT_SET("Video/Detached/Enabled")->SetBool(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue