Update the title of the detached video dialog when videos are opened. Closes #1607.

This commit is contained in:
Thomas Goyne 2013-06-12 14:21:56 -07:00
parent 0acec9c874
commit b90a77c74b

View file

@ -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);
}