Made Aegisub remember whether video was detached or not last time.
Originally committed to SVN as r1691.
This commit is contained in:
parent
d7d66733f0
commit
30fc5aa32f
2 changed files with 6 additions and 1 deletions
|
@ -43,6 +43,7 @@
|
|||
#include "video_context.h"
|
||||
#include "video_display.h"
|
||||
#include "frame_main.h"
|
||||
#include "options.h"
|
||||
|
||||
|
||||
///////////////
|
||||
|
@ -76,6 +77,8 @@ DialogDetachedVideo::DialogDetachedVideo(FrameMain *par)
|
|||
|
||||
// Update
|
||||
parent->SetDisplayMode(0,-1);
|
||||
Options.SetBool(_T("Detached video"),true);
|
||||
Options.Save();
|
||||
}
|
||||
|
||||
|
||||
|
@ -109,4 +112,6 @@ void DialogDetachedVideo::OnClose(wxCloseEvent &event) {
|
|||
Destroy();
|
||||
par->detachedVideo = NULL;
|
||||
par->SetDisplayMode(-1,-1);
|
||||
Options.SetBool(_T("Detached video"),false);
|
||||
Options.Save();
|
||||
}
|
||||
|
|
|
@ -1066,7 +1066,7 @@ void FrameMain::LoadVideo(wxString file,bool autoload) {
|
|||
SetDisplayMode(-1,-1);
|
||||
EditBox->UpdateFrameTiming();
|
||||
|
||||
if (!VideoContext::Get()->IsLoaded()) DetachVideo(false);
|
||||
DetachVideo(VideoContext::Get()->IsLoaded() && Options.AsBool(_T("Detached Video")));
|
||||
Thaw();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue