Pi66

walrs
pywal but if its Fast-Minimal-Simple
git clone https://git.pi66.xyz/walrs

← back to log

fix some glitches in reload method

author: pixel
date: 2025-03-21 10:51
hash: 50f63a50d318c58fc00d495dc7cc9ad345f57fcd

Diffstat:

M

src/reload.rs
3 ++++++++++--------------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
diff --git a/src/reload.rs b/src/reload.rs
index e8fd680..b88a7c0 100644
--- a/src/reload.rs
+++ b/src/reload.rs
@@ -109,8 +109,7 @@ pub fn reload(send:bool) {


     let wallpaper = read_to_string(&format!("{}/wal/wal",cache)).expect("run 'cp /etc/walrs/templates/wal ~/.config/walrs/templates/' and restart app").lines().next().unwrap().trim().to_string();
-    println!("wal: '{}'", wallpaper.as_str());
-    wallpaper::change_wallpaper(wallpaper.as_str(),true);
+    wallpaper::change_wallpaper(wallpaper.as_str(),send);

     colors(lines,send);
     xrdb(&cache,send);