Skip to content

Commit

Permalink
fix: sni item fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Sep 13, 2024
1 parent 34d3f98 commit c55acd2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
22 changes: 10 additions & 12 deletions src/modules/sni/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ void Item::proxyReady(Glib::RefPtr<Gio::AsyncResult>& result) {
this->updateImage();

} catch (const Glib::Error& err) {
spdlog::error("Failed to create DBus Proxy for {} {}: {}", bus_name, object_path, std
: string(err.what()));
spdlog::error("Failed to create DBus Proxy for {} {}: {}", bus_name, object_path,
std::string(err.what()));
} catch (const std::exception& err) {
spdlog::error("Failed to create DBus Proxy for {} {}: {}", bus_name, object_path, std
: string(err.what()));
spdlog::error("Failed to create DBus Proxy for {} {}: {}", bus_name, object_path,
std::string(err.what()));
}
}

Expand Down Expand Up @@ -179,14 +179,12 @@ void Item::setProperty(const Glib::ustring& name, Glib::VariantBase& value) {
}
} catch (const Glib::Error& err) {
spdlog::warn("Failed to set tray item property: {}.{}, value = {}, err = {}",
id.empty() ? bus_name : id, std
: string(name), get_variant<std::string>(value), std
: string(err.what()));
id.empty() ? bus_name : id, std::string(name), get_variant<std::string>(value),
std::string(err.what()));
} catch (const std::exception& err) {
spdlog::warn("Failed to set tray item property: {}.{}, value = {}, err = {}",
id.empty() ? bus_name : id, std
: string(name), get_variant<std::string>(value), std
: string(err.what()));
id.empty() ? bus_name : id, std::string(name), get_variant<std::string>(value),
std::string(err.what()));
}
}

Expand Down Expand Up @@ -228,9 +226,9 @@ void Item::processUpdatedProperties(Glib::RefPtr<Gio::AsyncResult>& _result) {

this->updateImage();
} catch (const Glib::Error& err) {
spdlog::warn("Failed to update properties: {}", err.what());
spdlog::warn("Failed to update properties: {}", std::string(err.what()));
} catch (const std::exception& err) {
spdlog::warn("Failed to update properties: {}", err.what());
spdlog::warn("Failed to update properties: {}", std::string(err.what()));
}
update_pending_.clear();
}
Expand Down
8 changes: 4 additions & 4 deletions subprojects/gtk-layer-shell.wrap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[wrap-file]
directory = gtk-layer-shell-0.8.2
source_filename = gtk-layer-shell-0.8.2.tar.gz
source_hash = 254dd246303127c5d5236ea640f01a82e35d2d652a48d139dd669c832a0f0dce
source_url = https://github.com/wmww/gtk-layer-shell/archive/v0.8.2/gtk-layer-shell-0.8.2.tar.gz
directory = gtk-layer-shell-0.9.0
source_filename = gtk-layer-shell-0.9.0.tar.gz
source_hash = 3809e5565d9ed02e44bb73787ff218523e8760fef65830afe60ea7322e22da1c
source_url = https://github.com/wmww/gtk-layer-shell/archive/v0.9.0/gtk-layer-shell-0.9.0.tar.gz

0 comments on commit c55acd2

Please sign in to comment.