mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(custom): do not take the custom module ref
This commit is contained in:
@ -35,7 +35,7 @@ waybar::modules::Battery::~Battery()
|
||||
void waybar::modules::Battery::worker()
|
||||
{
|
||||
// Trigger first values
|
||||
dp.emit();
|
||||
update();
|
||||
thread_ = [this] {
|
||||
struct inotify_event event = {0};
|
||||
int nbytes = read(fd_, &event, sizeof(event));
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "modules/custom.hpp"
|
||||
|
||||
waybar::modules::Custom::Custom(const std::string& name,
|
||||
waybar::modules::Custom::Custom(const std::string name,
|
||||
const Json::Value& config)
|
||||
: ALabel(config), name_(name)
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ waybar::modules::Network::Network(const Json::Value& config)
|
||||
label_.set_name("network");
|
||||
// Trigger first values
|
||||
getInfo();
|
||||
dp.emit();
|
||||
update();
|
||||
thread_ = [this] {
|
||||
char buf[4096];
|
||||
uint64_t len = netlinkResponse(sock_fd_, buf, sizeof(buf),
|
||||
|
Reference in New Issue
Block a user