From 854818133e3ecc562fc3e806e6d1baeea889b399 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Sun, 9 May 2021 14:25:46 -0300 Subject: [PATCH] DelegateToUi must be an owned function --- plugins/windows-notification/src/win_notification_provider.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/windows-notification/src/win_notification_provider.vala b/plugins/windows-notification/src/win_notification_provider.vala index bec7f59a..5a8aa15a 100644 --- a/plugins/windows-notification/src/win_notification_provider.vala +++ b/plugins/windows-notification/src/win_notification_provider.vala @@ -270,7 +270,7 @@ namespace Dino.Plugins.WindowsNotification { return AtomicUint.add(ref notification_counter, 1); } - private void run_on_ui(DelegateToUi func) { + private void run_on_ui(owned DelegateToUi func) { Idle.add(() => { func(); return false; }, GLib.Priority.HIGH); } }