move statusbar/progressbar related code to separate file
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "global.h"
|
||||
#include "settings.h"
|
||||
#include "status.h"
|
||||
#include "statusbar.h"
|
||||
|
||||
using Global::MainHeight;
|
||||
using Global::MainStartY;
|
||||
@@ -87,12 +88,12 @@ void Outputs::EnterPressed()
|
||||
if (w->current().value().isEnabled())
|
||||
{
|
||||
if (Mpd.DisableOutput(w->choice()))
|
||||
ShowMessage("Output \"%s\" disabled", w->current().value().name().c_str());
|
||||
Statusbar::msg("Output \"%s\" disabled", w->current().value().name().c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Mpd.EnableOutput(w->choice()))
|
||||
ShowMessage("Output \"%s\" enabled", w->current().value().name().c_str());
|
||||
Statusbar::msg("Output \"%s\" enabled", w->current().value().name().c_str());
|
||||
}
|
||||
if (!Mpd.SupportsIdle())
|
||||
FetchList();
|
||||
|
||||
Reference in New Issue
Block a user