Disable all overlay actions when not active to make it clearer, don't generate...

Disable all overlay actions when not active to make it clearer, don't generate audio monitor preview if disabled
parent b9201459
Pipeline #10050 passed with stage
in 13 minutes and 29 seconds
......@@ -1277,6 +1277,13 @@ void MainWindow::setupActions()
overlayAudioInfo->setCheckable(true);
overlayAudioInfo->setData(0x10);
connect(overlayInfo, &QAction::toggled, [&, overlayTCInfo, overlayFpsInfo, overlayMarkerInfo, overlayAudioInfo](bool toggled) {
overlayTCInfo->setEnabled(toggled);
overlayFpsInfo->setEnabled(toggled);
overlayMarkerInfo->setEnabled(toggled);
overlayAudioInfo->setEnabled(toggled);
});
QAction *dropFrames = new QAction(QIcon(), i18n("Real Time (drop frames)"), this);
dropFrames->setCheckable(true);
dropFrames->setChecked(KdenliveSettings::monitor_dropframes());
......
......@@ -1386,7 +1386,9 @@ void Monitor::slotOpenClip(const std::shared_ptr<ProjectClip> &controller, int i
}
m_glMonitor->setProducer(m_controller->originalProducer(), isActive(), in);
m_audioMeterWidget->audioChannels = controller->audioInfo() ? controller->audioInfo()->channels() : 0;
m_glMonitor->setAudioThumb(controller->audioChannels(), controller->audioFrameCache);
if (KdenliveSettings::displayClipMonitorInfo() & 0x10) {
m_glMonitor->setAudioThumb(controller->audioChannels(), controller->audioFrameCache);
}
m_controller->getMarkerModel()->registerSnapModel(m_snaps);
m_glMonitor->getControllerProxy()->setClipProperties(controller->clipType(), controller->hasAudioAndVideo(), controller->clipName());
// hasEffects = controller->hasEffects();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment