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
1 changed files with 3 additions and 1 deletions

View File

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