fix bar crashing on monitor add/remove
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "components/button/tabButton.hpp"
|
||||
#include "components/popover.hpp"
|
||||
#include "widgets/controlCenter/mediaWidget.hpp"
|
||||
#include "widgets/controlCenter/settings.hpp"
|
||||
#include "widgets/controlCenter/timer.hpp"
|
||||
#include "widgets/weather.hpp"
|
||||
|
||||
@@ -27,10 +28,12 @@ class ControlCenter : public Popover {
|
||||
std::unique_ptr<TabButton> mediaTabButton;
|
||||
std::unique_ptr<TabButton> infoTabButton;
|
||||
std::unique_ptr<TabButton> timerButton;
|
||||
std::unique_ptr<TabButton> settingsTabButton;
|
||||
|
||||
std::unique_ptr<WeatherWidget> weatherWidget;
|
||||
std::unique_ptr<MediaWidget> mediaControlWidget;
|
||||
std::unique_ptr<TimerWidget> timerWidget;
|
||||
std::unique_ptr<SettingsWidget> settingsWidget;
|
||||
|
||||
void addPlayerWidget(const std::string &bus_name);
|
||||
void removePlayerWidget(const std::string &bus_name);
|
||||
|
||||
Reference in New Issue
Block a user