Skip to content

Commit 01e77be

Browse files
committed
Refactor
1 parent 43a4f67 commit 01e77be

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/chatmodes/Plan.chatmode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ The plan consists of a Markdown document that describes the implementation plan,
1515
* Requirements: A list of requirements for the feature or refactoring task.
1616
* Implementation Steps: A detailed list of steps to implement the feature or refactoring task.
1717
* Testing: A list of tests that need to be implemented to verify the feature or refactoring task.
18-
* Comments in code: Only if neccessary, when the code is not self-explanatory.
18+
* Comments in code: Do not add comments.
1919

app/preferences-renderer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ window.onload = async (e) => {
2121
document.querySelector('#enablePostponeLong').closest('div').style.marginBottom = '56px'
2222
}
2323

24+
if (settings.hidePreferencesFileLocation) {
25+
document.querySelectorAll('[data-preferences-file]').forEach(element => {
26+
element.classList.add('hidden')
27+
})
28+
}
29+
2430
new HtmlTranslate(document).translate()
2531
setWindowHeight()
2632
setTimeout(() => { eventsAttached = true }, 500)
@@ -77,7 +83,7 @@ window.onload = async (e) => {
7783
document.querySelector('#timeleft').innerHTML = timeleft
7884
document.querySelector('#breakNumber').innerHTML = breaknumber
7985
document.querySelector('#postponesNumber').innerHTML = postponesnumber
80-
document.querySelector('#settingsfile').innerHTML = settings.hidePreferencesFileLocation ? 'hidden' : settingsfile
86+
document.querySelector('#settingsfile').innerHTML = settingsfile
8187
document.querySelector('#logsfile').innerHTML = logsfile
8288
document.querySelector('#donotdisturb').innerHTML = doNotDisturb
8389
document.querySelector('#node').innerHTML = await window.process.node()

app/preferences.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,10 @@
398398
postponesNumber: <span id="postponesNumber"></span>,
399399
Do Not Disturb: <span id="donotdisturb"></span>}
400400
<br />
401+
<span data-preferences-file>
401402
settingsFile: <a href="" class="file" id="settingsfile"></a>
402403
<br />
404+
</span>
403405
logsFile: <a href="" class="file" id="logsfile"></a>
404406
<br />Node.js: <span id="node"></span>,
405407
Chromium: <span id="chrome"></span>,

0 commit comments

Comments
 (0)