mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-09-15 19:26:58 +02:00
chore: clippy/fmt
This commit is contained in:
parent
3a3888a2d6
commit
f1a8b42cfa
2 changed files with 5 additions and 2 deletions
|
@ -328,7 +328,7 @@ fn files(dir: &Path) -> Vec<PathBuf> {
|
||||||
pub fn open_program(file_name: &str, str: &str) {
|
pub fn open_program(file_name: &str, str: &str) {
|
||||||
let expanded = str.replace("{app_name}", file_name);
|
let expanded = str.replace("{app_name}", file_name);
|
||||||
let launch_command_parts: Vec<&str> = expanded.split_whitespace().collect();
|
let launch_command_parts: Vec<&str> = expanded.split_whitespace().collect();
|
||||||
if let Err(err) = Command::new(&launch_command_parts[0])
|
if let Err(err) = Command::new(launch_command_parts[0])
|
||||||
.args(&launch_command_parts[1..])
|
.args(&launch_command_parts[1..])
|
||||||
.stdout(Stdio::null())
|
.stdout(Stdio::null())
|
||||||
.stderr(Stdio::null())
|
.stderr(Stdio::null())
|
||||||
|
|
|
@ -181,7 +181,10 @@ fn on_update(
|
||||||
UpdateEvent::AttentionIcon(_icon) => {
|
UpdateEvent::AttentionIcon(_icon) => {
|
||||||
warn!("received unimplemented NewAttentionIcon event");
|
warn!("received unimplemented NewAttentionIcon event");
|
||||||
}
|
}
|
||||||
UpdateEvent::Icon { icon_name, icon_pixmap} => {
|
UpdateEvent::Icon {
|
||||||
|
icon_name,
|
||||||
|
icon_pixmap,
|
||||||
|
} => {
|
||||||
menu_item.icon_pixmap = icon_pixmap;
|
menu_item.icon_pixmap = icon_pixmap;
|
||||||
|
|
||||||
if icon_name.as_ref() != menu_item.icon_name() {
|
if icon_name.as_ref() != menu_item.icon_name() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue