diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-21 13:46:34 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-21 13:46:34 +0100 |
commit | 679cc7a2cb1f8f434bd6d21b3b316fa1617252e9 (patch) | |
tree | 1315bef909a243be9a0fcae21b5495d968ad2875 | |
parent | 40c40d8c7f011688b0014501be7fd5789fcf2569 (diff) |
Show the Visualizer immediately if it's the initial screen
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/ncmpcpp.cpp | 3 | ||||
-rw-r--r-- | src/screens/visualizer.cpp | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index b899315c..55013952 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Fix intermittent failures of the Genius fetcher. * Fix crash on startup with Visualizer as the initial screen. * Fix crash on startup with Browser as the initial screen. +* Show the Visualizer immediately if it's the initial screen. # ncmpcpp-0.9 (2020-12-20) * Fix various Mopidy specific bugs. diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index a186c6aa..15991231 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -189,6 +189,9 @@ int main(int argc, char **argv) Mpd.Disconnect(); throw MPD::ClientError(MPD_ERROR_STATE, "MPD < 0.16.0 is not supported", false); } + // Once the connection is established, run full Status::trace to set a + // proper window timeout, initialize status etc. + Status::trace(true, true); } catch (MPD::ClientError &e) { diff --git a/src/screens/visualizer.cpp b/src/screens/visualizer.cpp index ce1c4105..8fdcd464 100644 --- a/src/screens/visualizer.cpp +++ b/src/screens/visualizer.cpp @@ -104,7 +104,6 @@ void Visualizer::switchTo() { SwitchTo::execute(this); Clear(); - OpenDataSource(); m_reset_output = true; drawHeader(); # ifdef HAVE_FFTW3_H |