Skip to content

Commit

Permalink
Use QDBus::NoBlock in all D-Bus calls
Browse files Browse the repository at this point in the history
Does this help #123?
  • Loading branch information
probonopd committed Dec 17, 2022
1 parent 694b465 commit 267f193
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin-statusnotifier/statusnotifierwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void StatusNotifierWidget::itemAdded(QString serviceAndPath)
if (! iface.isValid()) {
printf("D-Bus interface not valid\n");
} else {
iface.call("stopShowingApplicationName");
iface.call(QDBus::NoBlock, "stopShowingApplicationName");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions plugin-volume/volumewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void VolumeWidget::toggleMute()
{
QDBusInterface iface(Service, ObjectPath, Interface, QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("toggleMute");
iface.call(QDBus::NoBlock, "toggleMute");
initUI();
}
}
Expand All @@ -102,7 +102,7 @@ void VolumeWidget::handleSliderValueChanged(int value)
{
QDBusInterface iface(Service, ObjectPath, Interface, QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setVolume", QVariant::fromValue(value));
iface.call(QDBus::NoBlock, "setVolume", QVariant::fromValue(value));
initUI();
}
}
Expand Down

0 comments on commit 267f193

Please sign in to comment.