Skip to content

Commit

Permalink
Don't popup errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shumingch committed Jun 10, 2017
1 parent 5a5980c commit d2623cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions GmailMessageTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,14 @@ const GmailMessageTray = new Lang.Class({
return this._createNotificationWithSource(this.summarySource, content, MAIL_READ, false, true, callback);
},
showError: function (error) {
const popup = this.errorSource.count === 0;
this.errorSource.destroy();
this.errorSource = this._newErrorSource();
const content = {
from: error,
date: new Date(),
subject: EXTENSION_NAME
};
this._createNotificationWithSource(this.errorSource, content, DIALOG_ERROR, popup, true, () => {
this._createNotificationWithSource(this.errorSource, content, DIALOG_ERROR, false, true, () => {
this._openBrowser("https://github.com/shumingch/GmailMessageTray");
});
},
Expand Down
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const GmailMessageTray = Me.imports.GmailMessageTray.GmailMessageTray;
const Mainloop = imports.mainloop;
const console = Me.imports.console.console;

const _version = "4";
const _version = "5";

let extension;
let Soup, sSes, Gio, Goa;
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
],
"url": "https://github.com/shumingch/GmailMessageTray",
"uuid": "GmailMessageTray@shuming0207.gmail.com",
"version": 4
"version": 5
}

0 comments on commit d2623cd

Please sign in to comment.