Skip to content

Commit 31f361a

Browse files
committed
fixed tooltips not disappearing
1 parent 4d79cb3 commit 31f361a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- added new cooldown reason `Reports (Grief)`
44
- added encryption (can be enabled in settings)
55
- search and sorting now updates correctly when account data changes ([#6](https://github.com/dumbasPL/csgo-checker/issues/6))
6+
- fixed tooltips not disappearing after deleting account without confirmation
67

78
# 1.0.2
89
- fixed tags not being saved when adding new account

html/js/front.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ async function updateAccounts(force = false) {
503503
await ipcRenderer.invoke('accounts:delete', login);
504504
updateAccounts();
505505
tr.remove();
506+
document.querySelectorAll('.tooltip').forEach(elem => elem.remove()); //remove all tooltips when ctrl click deleting (I think this will leak memory in bootstrap, oh well, to lazy to do properly)
506507
} else {
507508
let modal_div = document.querySelector('#confirmDeleteAccount');
508509
modal_div.querySelector('input[name=login]').value = login;

0 commit comments

Comments
 (0)