Use new base::option::changes in a few old options

This commit is contained in:
Ilya Fedin
2026-06-22 19:30:59 +00:00
committed by John Preston
parent ee39aa34b4
commit 156c8e74e5
4 changed files with 21 additions and 11 deletions
@@ -332,9 +332,7 @@ void Create(Window::Notifications::System *system) {
Manager::Private::Private(not_null<Manager*> manager)
: _manager(manager)
, _application(UseGNotification()
? Gio::Application::get_default()
: nullptr)
, _application(Gio::Application::get_default())
, _sounds(cWorkingDir() + u"tdata/audio_cache"_q) {
const auto &serverInformation = CurrentServerInformation;
@@ -429,7 +427,7 @@ void Manager::Private::init(XdgNotifications::NotificationsProxy proxy) {
_proxy = proxy;
_interface = proxy;
if (_application || !_interface) {
if (!_interface) {
return;
}
@@ -535,7 +533,7 @@ void Manager::Private::showNotification(
.contextId = key,
.msgId = info.itemId,
};
auto notification = _application
auto notification = UseGNotification()
? Gio::Notification::new_(info.title.toStdString())
: Gio::Notification();