summaryrefslogtreecommitdiffstats
path: root/src/app/stateChange.cpp
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2025-01-21 17:00:36 +1000
committermio <stigma@disroot.org>2025-03-07 10:23:58 +1000
commit5e57ab35afe0d5ddd960921a76ea11f22561f287 (patch)
treeab13fde0e97d135d828dd426445b1818da8c4aa7 /src/app/stateChange.cpp
parentadb9e2e081098d645141dc53a92f3060691a6497 (diff)
downloadcodeine-5e57ab35afe0d5ddd960921a76ea11f22561f287.tar.gz
codeine-5e57ab35afe0d5ddd960921a76ea11f22561f287.zip
Add context menu to status bar
It adds an item which toggles the visibility of the Analyzer when watching videos. Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'src/app/stateChange.cpp')
-rw-r--r--src/app/stateChange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp
index 73f77d0..2418209 100644
--- a/src/app/stateChange.cpp
+++ b/src/app/stateChange.cpp
@@ -106,7 +106,7 @@ MainWindow::engineStateChanged( Engine::State state )
/// update statusBar
{
using namespace Engine;
- m_analyzer->setShown(state & (Playing | Paused) && (TheStream::hasVideo() && TheStream::hasAudio()));
+ m_analyzer->setShown(m_showAnalyzer && (TheStream::hasVideo() && TheStream::hasAudio()));
m_timeLabel->setShown(state & (Playing | Paused));
}