Skip to content

Commit

Permalink
Fix search history and rating
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Apr 9, 2022
1 parent af25d5a commit eedd4f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
6 changes: 3 additions & 3 deletions app/application/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ const generateCodeElements = (data) => {
}
}, 500)

// search history
const search_history = settings.search_history.latest
// latest search from history
const latest_search = settings.search_history.latest

if (search_history !== null && search_history !== "" && search_history === true) {
if (latest_search !== null && latest_search.trim() !== "" && search_history === true) {
document.querySelector("#search").value = settings.search_history.latest

setTimeout(() => {
Expand Down
5 changes: 0 additions & 5 deletions app/confirm/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,6 @@ const unhashPassword = async () => {
}
}

/**
* Forget password
*/
const forgotPassword = () => {}

/**
* Show more options div
*/
Expand Down
2 changes: 0 additions & 2 deletions lib/typedef.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
* @property {boolean} settings.launch_on_startup - Launch On startup
* @property {boolean} settings.close_to_tray - Close app to tray
* @property {boolean} settings.codes_description - Show 2FA names
* @property {boolean} settings.blur_codes - Reveal codes on hover
* @property {boolean} settings.reset_after_copy - Reset searchbar after copy
* @property {boolean} settings.search_history - Save search results
* @property {boolean} settings.disable_window_capture - Disable screen capture
* @property {boolean} settings.hardware_acceleration - Disable hardware acceleration
* @property {object} settings.search_filter - Filter search results
* @property {boolean} settings.search_filter.name - Filter for names
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,11 +951,11 @@ const createWindows = () => {
})
}

if (settings.statistics.rate === true && settings.statistics.feedback === true) {
if (settings.statistics.rated === true && settings.statistics.feedback === true) {
if (opens % 100 === 0) {
openInfo()
}
} else if (settings.statistics.rate === true || settings.statistics.feedback === true) {
} else if (settings.statistics.rated === true || settings.statistics.feedback === true) {
if (opens % 50 === 0) {
openInfo()
}
Expand Down

0 comments on commit eedd4f7

Please sign in to comment.