autorunManager: Don't show a right-click menu
Activating the source shouldn't be possible, and neither should removing it. https://bugzilla.gnome.org/show_bug.cgi?id=683438
This commit is contained in:
parent
6f5b700833
commit
e71129aa68
@ -284,6 +284,10 @@ const AutorunResidentSource = new Lang.Class({
|
|||||||
this._notification = new AutorunResidentNotification(this._manager, this);
|
this._notification = new AutorunResidentNotification(this._manager, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
buildRightClickMenu: function() {
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
|
||||||
addMount: function(mount, apps) {
|
addMount: function(mount, apps) {
|
||||||
if (!shouldAutorunMount(mount, false))
|
if (!shouldAutorunMount(mount, false))
|
||||||
return;
|
return;
|
||||||
|
@ -2340,7 +2340,9 @@ const MessageTray = new Lang.Class({
|
|||||||
Lang.bind(this, this._onSummaryBoxPointerContentUpdated));
|
Lang.bind(this, this._onSummaryBoxPointerContentUpdated));
|
||||||
this._sourceDoneDisplayingId = this._summaryBoxPointerItem.source.connect('done-displaying-content',
|
this._sourceDoneDisplayingId = this._summaryBoxPointerItem.source.connect('done-displaying-content',
|
||||||
Lang.bind(this, this._escapeTray));
|
Lang.bind(this, this._escapeTray));
|
||||||
if (this._clickedSummaryItemMouseButton == 1) {
|
|
||||||
|
let hasRightClickMenu = this._summaryBoxPointerItem.rightClickMenu != null;
|
||||||
|
if (this._clickedSummaryItemMouseButton == 1 || !hasRightClickMenu) {
|
||||||
let newQueue = [];
|
let newQueue = [];
|
||||||
for (let i = 0; i < this._notificationQueue.length; i++) {
|
for (let i = 0; i < this._notificationQueue.length; i++) {
|
||||||
let notification = this._notificationQueue[i];
|
let notification = this._notificationQueue[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user