Skip to content

Commit 01c66bd

Browse files
committed
Adds advanced option to hide location of preferences file in Debug info
1 parent d11b466 commit 01c66bd

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
### Added
99
- Yiddish and Tamil translations
1010
- advanced option to show custom message in Preferences
11+
- advanced option to hide location of Preferences file in Debug info
1112
- advanced option to disable app update features
1213

1314
### Changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ If you want to disable functionality around app updates, set `disableAppUpdateFe
384384

385385
This might be useful for corporate installations.
386386

387+
#### Hide location of preferences file in Debug info
388+
If you want to hide location of preferences file in Debug info, set `hidePreferencesFileLocation` to `true`.
389+
390+
This might be useful for corporate installations.
391+
387392
## Contributor Preferences
388393

389394
*Stretchly* is free but you can support it by contributing code, translations or money. You will be rewarded by getting access to **Contributor Preferences**, ability to **Sync Preferences**, chat on **Discord** and more!

app/preferences-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ window.onload = async (e) => {
7070
document.querySelector('#timeleft').innerHTML = timeleft
7171
document.querySelector('#breakNumber').innerHTML = breaknumber
7272
document.querySelector('#postponesNumber').innerHTML = postponesnumber
73-
document.querySelector('#settingsfile').innerHTML = settingsfile
73+
document.querySelector('#settingsfile').innerHTML = settings.hidePreferencesFileLocation ? 'hidden' : settingsfile
7474
document.querySelector('#logsfile').innerHTML = logsfile
7575
document.querySelector('#donotdisturb').innerHTML = doNotDisturb
7676
document.querySelector('#node').innerHTML = await window.process.node()

app/utils/defaultSettings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@ export default {
7676
resetBreaksShortcut: '',
7777
showTrayMenuInStrictMode: false,
7878
customPreferencesMessage: '',
79-
disableAppUpdateFeatures: false
79+
disableAppUpdateFeatures: false,
80+
hidePreferencesFileLocation: false
8081
}

0 commit comments

Comments
 (0)