perf(desktop): write icon theme config atomically

This commit is contained in:
Michael Aaron Murphy 2024-09-19 00:33:33 +02:00
parent 5145d47bd7
commit e7acd48bd9
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -470,10 +470,10 @@ impl Page {
Message::IconTheme(id) => {
if let Some(theme) = self.icon_themes.get(id).cloned() {
self.icon_theme_active = Some(id);
self.tk.icon_theme = theme.id.clone();
if let Some(ref config) = self.tk_config {
let _ = self.tk.write_entry(config);
_ = self.tk.set_icon_theme(config, theme.id.clone());
}
tokio::spawn(set_gnome_icon_theme(theme.name));