forked from mia/Aegisub
Made video position not show on audio by default, also made it check whether audio is visible before trying to update it.
Originally committed to SVN as r1735.
This commit is contained in:
parent
e271b979b2
commit
51725ff9a7
2 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ void OptionsManager::LoadDefaults(bool onlyDefaults) {
|
|||
SetBool(_T("Audio Draw Keyframes"), true);
|
||||
SetBool(_T("Audio Draw Timeline"),true);
|
||||
SetBool(_T("Audio Draw Cursor Time"),true);
|
||||
SetBool(_T("Audio Draw Video Position"),true);
|
||||
SetBool(_T("Audio Draw Video Position"),false);
|
||||
SetColour(_T("Audio Selection Background Modified"),wxColour(92,0,0));
|
||||
SetColour(_T("Audio Selection Background"),wxColour(64,64,64));
|
||||
SetColour(_T("Audio Seconds Boundaries"),wxColour(0,100,255));
|
||||
|
|
|
@ -425,7 +425,7 @@ void VideoContext::UpdateDisplays(bool full) {
|
|||
}
|
||||
|
||||
// Update audio display
|
||||
if (audio && audio->loaded) {
|
||||
if (audio && audio->loaded && audio->IsShownOnScreen()) {
|
||||
if (Options.AsBool(_T("Audio Draw Video Position"))) {
|
||||
audio->UpdateImage(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue