components/autorunManager: Add description to autorun notification
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3168>
This commit is contained in:
parent
94181ea999
commit
3c43983ed1
@ -187,9 +187,13 @@ class AutorunDispatcher {
|
||||
return;
|
||||
|
||||
const source = MessageTray.getSystemSource();
|
||||
/* Translators: %s is the name of a partition on a external drive */
|
||||
const title = _('“%s” connected'.format(mount.get_name()));
|
||||
const body = _('Disk can now be used');
|
||||
const notification = new MessageTray.Notification({
|
||||
source,
|
||||
title: mount.get_name(),
|
||||
title,
|
||||
body,
|
||||
});
|
||||
notification.connect('activate', () => {
|
||||
const app = Gio.app_info_get_default_for_type('inode/directory', false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user