commit
b084bf721e
|
@ -16,7 +16,7 @@ Workspaces::Workspaces(const std::string &id, const Bar &bar, const Json::Value
|
||||||
box_(bar.vertical ? Gtk::ORIENTATION_VERTICAL : Gtk::ORIENTATION_HORIZONTAL, 0) {
|
box_(bar.vertical ? Gtk::ORIENTATION_VERTICAL : Gtk::ORIENTATION_HORIZONTAL, 0) {
|
||||||
Json::Value config_format = config["format"];
|
Json::Value config_format = config["format"];
|
||||||
|
|
||||||
format_ = config_format.isString() ? config_format.asString() : "{id}";
|
format_ = config_format.isString() ? config_format.asString() : "{name}";
|
||||||
with_icon_ = format_.find("{icon}") != std::string::npos;
|
with_icon_ = format_.find("{icon}") != std::string::npos;
|
||||||
|
|
||||||
if (with_icon_ && icons_map_.empty()) {
|
if (with_icon_ && icons_map_.empty()) {
|
||||||
|
|
Loading…
Reference in New Issue