mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
fix: logging for creating bar incorrect
This commit is contained in:
parent
8536ad719a
commit
bd5bdf5af5
1 changed files with 3 additions and 3 deletions
|
@ -116,12 +116,10 @@ fn create_bars(
|
||||||
let num_monitors = display.n_monitors();
|
let num_monitors = display.n_monitors();
|
||||||
|
|
||||||
for i in 0..num_monitors {
|
for i in 0..num_monitors {
|
||||||
let monitor = display.monitor(i).ok_or_else(|| Report::msg("GTK and Sway are reporting a different number of outputs - this is a severe bug and should never happen"))?;
|
let monitor = display.monitor(i).ok_or_else(|| Report::msg("GTK and Sway are reporting a different set of outputs - this is a severe bug and should never happen"))?;
|
||||||
let output = outputs.get(i as usize).ok_or_else(|| Report::msg("GTK and Sway are reporting a different set of outputs - this is a severe bug and should never happen"))?;
|
let output = outputs.get(i as usize).ok_or_else(|| Report::msg("GTK and Sway are reporting a different set of outputs - this is a severe bug and should never happen"))?;
|
||||||
let monitor_name = &output.name;
|
let monitor_name = &output.name;
|
||||||
|
|
||||||
info!("Creating bar on '{}'", monitor_name);
|
|
||||||
|
|
||||||
// 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()),
|
|| create_bar(app, &monitor, monitor_name, config.clone()),
|
||||||
|
@ -129,10 +127,12 @@ fn create_bars(
|
||||||
let config = config.get(monitor_name);
|
let config = config.get(monitor_name);
|
||||||
match &config {
|
match &config {
|
||||||
Some(MonitorConfig::Single(config)) => {
|
Some(MonitorConfig::Single(config)) => {
|
||||||
|
info!("Creating bar on '{}'", monitor_name);
|
||||||
create_bar(app, &monitor, monitor_name, config.clone())
|
create_bar(app, &monitor, monitor_name, config.clone())
|
||||||
}
|
}
|
||||||
Some(MonitorConfig::Multiple(configs)) => {
|
Some(MonitorConfig::Multiple(configs)) => {
|
||||||
for config in configs {
|
for config in configs {
|
||||||
|
info!("Creating bar on '{}'", monitor_name);
|
||||||
create_bar(app, &monitor, monitor_name, config.clone())?;
|
create_bar(app, &monitor, monitor_name, config.clone())?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue