mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(Bar): handle widget size changes
This commit is contained in:
@ -4,7 +4,7 @@ waybar::Factory::Factory(const Bar& bar, const Json::Value& config) : bar_(bar),
|
||||
|
||||
waybar::IModule* waybar::Factory::makeModule(const std::string& name) const {
|
||||
try {
|
||||
auto hash_pos = name.find("#");
|
||||
auto hash_pos = name.find('#');
|
||||
auto ref = name.substr(0, hash_pos);
|
||||
auto id = hash_pos != std::string::npos ? name.substr(hash_pos + 1) : "";
|
||||
if (ref == "battery") {
|
||||
|
Reference in New Issue
Block a user