TagSpaces is an offline, open source, document manager with tagging support
feat: making reload on focus free feature, making location watching available in devmode
Ilian Sapundshiev2ca9f535cea7
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex 2127a5cb2..ea06dc593 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -798,7 +798,7 @@ function CreateEditLocationDialog(props: Props) {sx={{ justifyContent: 'space-between', marginLeft: 0 }}control={<Switch- disabled={!Pro}+ // disabled={!Pro}data-tid="reloadOnFocusTID"name="reloadOnFocus"checked={reloadOnFocus}@@ -854,31 +854,33 @@ function CreateEditLocationDialog(props: Props) {</>}/>- <FormControlLabel- disabled={- !Pro ||- type === locationType.TYPE_CLOUD ||- AppConfig.isCordova- }- labelPlacement="start"- sx={{ justifyContent: 'space-between', marginLeft: 0 }}- control={- <Switch- data-tid="changeWatchForChanges"- name="watchForChanges"- checked={watchForChanges}- onChange={(event: ChangeEvent<HTMLInputElement>) =>- setWatchForChanges(event.target.checked)- }- />- }- label={- <>- {t('core:watchForChangesInLocation')}- {!Pro && <ProLabel />}- </>- }- />+ {devMode && (+ <FormControlLabel+ disabled={+ !Pro ||+ type === locationType.TYPE_CLOUD ||+ AppConfig.isCordova+ }+ labelPlacement="start"+ sx={{ justifyContent: 'space-between', marginLeft: 0 }}+ control={+ <Switch+ data-tid="changeWatchForChanges"+ name="watchForChanges"+ checked={watchForChanges}+ onChange={(event: ChangeEvent<HTMLInputElement>) =>+ setWatchForChanges(event.target.checked)+ }+ />+ }+ label={+ <>+ {t('core:watchForChangesInLocation')}+ {!Pro && <ProLabel />}+ </>+ }+ />+ )}<FormControlLabellabelPlacement="start"sx={{ justifyContent: 'space-between', marginLeft: 0 }}