fix(Bar): typo

pull/287/head
Alex 2019-04-24 12:42:16 +02:00
parent 311c34ecbc
commit 9504b7ac03
2 changed files with 4 additions and 4 deletions

View File

@ -44,6 +44,8 @@ class Bar {
"Requested width: {} exceeds the minimum width: {} required by the modules"; "Requested width: {} exceeds the minimum width: {} required by the modules";
static inline const std::string BAR_SIZE_MSG = static inline const std::string BAR_SIZE_MSG =
"Bar configured (width: {}, height: {}) for output: {}"; "Bar configured (width: {}, height: {}) for output: {}";
static inline const std::string SIZE_DEFINED =
"{} size is defined in the config file so it will stay like that";
static void layerSurfaceHandleConfigure(void *, struct zwlr_layer_surface_v1 *, uint32_t, static void layerSurfaceHandleConfigure(void *, struct zwlr_layer_surface_v1 *, uint32_t,
uint32_t, uint32_t); uint32_t, uint32_t);
static void layerSurfaceHandleClosed(void *, struct zwlr_layer_surface_v1 *); static void layerSurfaceHandleClosed(void *, struct zwlr_layer_surface_v1 *);

View File

@ -51,8 +51,7 @@ waybar::Bar::Bar(struct waybar_output* w_output)
std::cout << fmt::format(MIN_HEIGHT_MSG, height_, ev->height) << std::endl; std::cout << fmt::format(MIN_HEIGHT_MSG, height_, ev->height) << std::endl;
} }
if (output->config["height"].isUInt()) { if (output->config["height"].isUInt()) {
std::cout << "Height size is defined in the config file so it will stay like that" std::cout << fmt::format(SIZE_DEFINED, "Height") << std::endl;
<< std::endl;
} else { } else {
tmp_height = ev->height; tmp_height = ev->height;
} }
@ -63,8 +62,7 @@ waybar::Bar::Bar(struct waybar_output* w_output)
std::cout << fmt::format(MIN_WIDTH_MSG, width_, ev->width) << std::endl; std::cout << fmt::format(MIN_WIDTH_MSG, width_, ev->width) << std::endl;
} }
if (output->config["width"].isUInt()) { if (output->config["width"].isUInt()) {
std::cout << "Height size is defined in the config file so it will stay like that" std::cout << fmt::format(SIZE_DEFINED, "Width") << std::endl;
<< std::endl;
} else { } else {
tmp_width = ev->width; tmp_width = ev->width;
} }