fix: logging for creating bar incorrect still
This commit is contained in:
@@ -111,7 +111,7 @@ fn create_bars(
|
|||||||
let outputs = wl.outputs.as_slice();
|
let outputs = wl.outputs.as_slice();
|
||||||
|
|
||||||
debug!("Received {} outputs from Wayland", outputs.len());
|
debug!("Received {} outputs from Wayland", outputs.len());
|
||||||
debug!("Output names: {:?}", outputs);
|
debug!("Outputs: {:?}", outputs);
|
||||||
|
|
||||||
let num_monitors = display.n_monitors();
|
let num_monitors = display.n_monitors();
|
||||||
|
|
||||||
@@ -122,7 +122,10 @@ fn create_bars(
|
|||||||
|
|
||||||
// TODO: Could we use an Arc<Config> or `Cow<Config>` here to avoid cloning?
|
// TODO: Could we use an Arc<Config> or `Cow<Config>` here to avoid cloning?
|
||||||
config.monitors.as_ref().map_or_else(
|
config.monitors.as_ref().map_or_else(
|
||||||
|| create_bar(app, &monitor, monitor_name, config.clone()),
|
|| {
|
||||||
|
info!("Creating bar on '{}'", monitor_name);
|
||||||
|
create_bar(app, &monitor, monitor_name, config.clone())
|
||||||
|
},
|
||||||
|config| {
|
|config| {
|
||||||
let config = config.get(monitor_name);
|
let config = config.get(monitor_name);
|
||||||
match &config {
|
match &config {
|
||||||
|
|||||||
Reference in New Issue
Block a user