[polari] util: Use regular message notification for feedback



commit a0f36ab6580ece47009af39e1c0969aba1043847
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 28 00:49:02 2022 +0100

    util: Use regular message notification for feedback
    
    This is the last user of the command queue. Replace it, so that
    we can remove the queue and all related code.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/247>

 src/utils.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index 99d7368b..ba691219 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -26,7 +26,7 @@ import GLib from 'gi://GLib';
 import Gtk from 'gi://Gtk';
 import Secret from 'gi://Secret';
 
-import { SimpleOutput as AppNotification } from './appNotifications.js';
+import { MessageNotification } from './appNotifications.js';
 
 import gi from 'gi';
 let Soup;
@@ -316,7 +316,7 @@ export function openURL(url) {
             try {
                 Gtk.show_uri_full_finish(app.active_window, res);
             } catch (e) {
-                let n = new AppNotification(_('Failed to open link'));
+                let n = new MessageNotification(_('Failed to open link'));
                 app.active_window?.queueNotification(n);
                 console.debug(`Failed to open ${url}: %o`, e);
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]