forked from mia/Aegisub
Close the detached video dialog when video is closed
This commit is contained in:
parent
7780fadfc6
commit
23f6addf35
2 changed files with 4 additions and 3 deletions
|
@ -129,8 +129,8 @@ void DialogDetachedVideo::OnKeyDown(wxKeyEvent &evt) {
|
|||
hotkey::check("Video Display", context, evt);
|
||||
}
|
||||
|
||||
void DialogDetachedVideo::OnVideoOpen() {
|
||||
if (context->project->VideoProvider())
|
||||
void DialogDetachedVideo::OnVideoOpen(AsyncVideoProvider *new_provider) {
|
||||
if (new_provider)
|
||||
SetTitle(fmt_tl("Video: %s", context->project->VideoName().filename()));
|
||||
else {
|
||||
Close();
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <libaegisub/signal.h>
|
||||
|
||||
namespace agi { struct Context; }
|
||||
class AsyncVideoProvider;
|
||||
class PersistLocation;
|
||||
class VideoBox;
|
||||
class VideoDisplay;
|
||||
|
@ -53,7 +54,7 @@ class DialogDetachedVideo final : public wxDialog {
|
|||
/// Minimize event handler to hack around a wx bug
|
||||
void OnMinimize(wxIconizeEvent &evt);
|
||||
void OnKeyDown(wxKeyEvent &evt);
|
||||
void OnVideoOpen();
|
||||
void OnVideoOpen(AsyncVideoProvider *new_provider);
|
||||
|
||||
public:
|
||||
/// @brief Constructor
|
||||
|
|
Loading…
Reference in a new issue