Fix various mpd bugs

- Add elapsedTime and totalTime to tooltip format arguments
- Catch format exceptions and print error
- Copy mpd connection error message before it gets freed
- Update display after connection to mpd was lost
This commit is contained in:
Flakebi
2020-10-23 21:13:20 +02:00
parent 9ea13e790d
commit be3f47b374
2 changed files with 43 additions and 32 deletions

View File

@@ -341,6 +341,7 @@ void Disconnected::disarm_timer() noexcept {
}
void Disconnected::entry() noexcept {
ctx_->emit();
arm_timer(1'000);
}