| 263 | } |
| 264 | |
| 265 | void statusbar_icon_remove(int8_t id) { |
| 266 | if (LOGGER.isLoggingDebug()) { |
| 267 | LOGGER.debug("id {}: remove", id); |
| 268 | } |
| 269 | check(id >= 0 && id < STATUSBAR_ICON_LIMIT); |
| 270 | statusbar_data.mutex.lock(); |
| 271 | StatusbarIcon* icon = &statusbar_data.icons[id]; |
| 272 | icon->claimed = false; |
| 273 | icon->visible = false; |
| 274 | icon->image = ""; |
| 275 | statusbar_data.mutex.unlock(); |
| 276 | statusbar_data.pubsub->publish(nullptr); |
| 277 | } |
| 278 | |
| 279 | void statusbar_icon_set_image(int8_t id, const std::string& image) { |
| 280 | if (LOGGER.isLoggingDebug()) { |