DelegateToUi must be an owned function

This commit is contained in:
LAGonauta 2021-05-09 14:25:46 -03:00
parent 878bf9ac43
commit 854818133e

View file

@ -270,7 +270,7 @@ namespace Dino.Plugins.WindowsNotification {
return AtomicUint.add(ref notification_counter, 1); 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); Idle.add(() => { func(); return false; }, GLib.Priority.HIGH);
} }
} }