Show the Visualizer immediately if it's the initial screen

This commit is contained in:
Andrzej Rybczak
2020-12-21 13:46:34 +01:00
parent 40c40d8c7f
commit 679cc7a2cb
3 changed files with 4 additions and 1 deletions

View File

@@ -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.

View File

@@ -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)
{

View File

@@ -104,7 +104,6 @@ void Visualizer::switchTo()
{
SwitchTo::execute(this);
Clear();
OpenDataSource();
m_reset_output = true;
drawHeader();
# ifdef HAVE_FFTW3_H