Skip to content

Commit

Permalink
Run Jasmine tests => turn off "new-version" icon
Browse files Browse the repository at this point in the history
Closes #233.
  • Loading branch information
cxw42 committed Dec 12, 2020
1 parent 0791c78 commit 85a9345
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions app/win/main_tl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2861,6 +2861,19 @@ function hamReloadTree()
window.location.reload(true);
} //hamReloadTree()


// Record that the user has seen the "what's new" for this version
function userHasSeenSettings()
{
if(ShowWhatIsNew) {
ShowWhatIsNew = false;

let to_save = {};
to_save[K.LASTVER_KEY] = TABFERN_VERSION;
chrome.storage.local.set(to_save, ignore_chrome_error);
}
}

/// Open the Settings window. If ShowWhatIsNew, also updates the K.LASTVER_KEY
/// information used by checkWhatIsNew().
function hamSettings()
Expand All @@ -2875,14 +2888,7 @@ function hamSettings()
log.error('Could not get settings URL');
}

// Record that the user has seen the "what's new" for this version
if(ShowWhatIsNew) {
ShowWhatIsNew = false;

let to_save = {};
to_save[K.LASTVER_KEY] = TABFERN_VERSION;
chrome.storage.local.set(to_save, ignore_chrome_error);
}
userHasSeenSettings();
} //hamSettings()

function hamBackup()
Expand Down Expand Up @@ -2996,6 +3002,8 @@ function hamRunJasmineTests()
} else {
log.error('Could not get Jasmine-test URL');
}

userHasSeenSettings(); // #233
} // hamRunJasmineTests

function hamSortOpenToTop()
Expand Down

0 comments on commit 85a9345

Please sign in to comment.