silence error

This commit is contained in:
Erica Z 2024-11-23 15:14:18 +01:00
parent 689552eff2
commit b1eb01effc

View file

@ -176,7 +176,8 @@ mod imp {
// wipe state directory on init (gets rid of stale mpris cover art)
let state_home = audrey::globals::xdg_dirs().get_state_home();
std::fs::remove_dir_all(state_home).expect("could not remove xdg state home");
// silence error (its okay if it does not exist)
let _ = std::fs::remove_dir_all(state_home);
if let Some(display) = gdk::Display::default() {
gtk::style_context_add_provider_for_display(&display, &self.css_provider, 420);