Skip to content

Commit

Permalink
p
Browse files Browse the repository at this point in the history
  • Loading branch information
dbazza committed Jan 3, 2021
1 parent fcd66c8 commit 3504fac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ class Indicator extends PanelMenu.Button {
aggiorna() {
if(this.isOneDriveActive())
{
let oldlastLineStatus = this.lastLineStatus;
this.getLastLineStatus();
if(oldlastLineStatus !== this.lastLineStatus
|| (this.lastLineStatus.indexOf("Downloading") >= 0 && this.lastLineStatus.indexOf("done.") === -1)
|| (this.lastLineStatus.indexOf("Uploading") >= 0 && this.lastLineStatus.indexOf("done.") === -1))
if(this.lastLineStatus.indexOf("Starting a sync with OneDrive") >= 0
|| this.lastLineStatus.indexOf("Syncing changes from OneDrive") >= 0
|| this.lastLineStatus.indexOf("Downloading file") >= 0
|| this.lastLineStatus.indexOf("Uploading new file") >= 0)
{
this.statusIcon.set_property("style_class", "workingIcon");
this.statusIcon.set_property("icon_name", "system-search-symbolic");
Expand Down

0 comments on commit 3504fac

Please sign in to comment.