Skip to content

Commit

Permalink
Get GApplication out of experimental settings
Browse files Browse the repository at this point in the history
GApplication will always be used on Linux now. GNotification gets a toggle instead.
  • Loading branch information
ilya-fedin authored and john-preston committed Jan 12, 2023
1 parent 2887c0b commit a1f9b5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ NotificationData::NotificationData(
NotificationId id)
: _manager(manager)
, _id(id)
, _application(UseGNotification() ? Gio::Application::get_default() : {}) {
, _application(UseGNotification()
? Gio::Application::get_default()
: nullptr) {
}

bool NotificationData::init(
Expand Down
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/settings/settings_experimental.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void SetupExperimental(
addToggle(Settings::kOptionMonoSettingsIcons);
addToggle(Webview::kOptionWebviewDebugEnabled);
addToggle(kOptionAutoScrollInactiveChat);
addToggle(Windows::Notifications::kOptionGNotification);
addToggle(Window::Notifications::kOptionGNotification);
}

} // namespace
Expand Down
1 change: 1 addition & 0 deletions Telegram/SourceFiles/window/notifications_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ For license and copyright information please follow this link:
*/
#include "window/notifications_manager.h"

#include "base/options.h"
#include "platform/platform_notifications_manager.h"
#include "window/notifications_manager_default.h"
#include "media/audio/media_audio_track.h"
Expand Down

0 comments on commit a1f9b5a

Please sign in to comment.