TagSpaces is an offline, open source, document manager with tagging support
chore: adjusting ui of the debugging mode
Ilian Sapundshiev9028f2199334
diff --git a/src/renderer/components/dialogs/components/SettingsAdvanced.tsx b/src/renderer/components/dialogs/components/SettingsAdvanced.tsxindex 307147df2..7ab4e1b53 100644--- a/src/renderer/components/dialogs/components/SettingsAdvanced.tsx+++ b/src/renderer/components/dialogs/components/SettingsAdvanced.tsx@@ -28,6 +28,7 @@ import TsTextField from '-/components/TsTextField';import MapTileServerDialog from '-/components/dialogs/MapTileServerDialog';import { historyKeys } from '-/hooks/HistoryContextProvider';import { useHistoryContext } from '-/hooks/useHistoryContext';+import { useNotificationContext } from '-/hooks/useNotificationContext';import { Pro } from '-/pro';import { AppDispatch } from '-/reducers/app';import {@@ -39,6 +40,7 @@ import {} from '-/reducers/settings';import { isWorkerAvailable } from '-/services/utils-io';import { TS } from '-/tagspaces.namespace';+import { clearAllURLParams } from '-/utils/dom';import CheckIcon from '@mui/icons-material/Check';import EditIcon from '@mui/icons-material/Edit';import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';@@ -51,8 +53,6 @@ import Switch from '@mui/material/Switch';import React, { useEffect, useReducer, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';import { useDispatch, useSelector } from 'react-redux';-import { clearAllURLParams } from '-/utils/dom';-import { useNotificationContext } from '-/hooks/useNotificationContext';interface Props {}@@ -188,15 +188,6 @@ function SettingsAdvanced(props: Props) {checked={!settings.desktopMode}/></ListItem>- <ListItem>- <ListItemText primary={t('enableDevMode')} />- <Switch- data-tid="settingsEnableDevMode"- disabled={window.ExtDevMode && window.ExtDevMode === true}- onClick={() => setDevMode(!devMode)}- checked={devMode}- />- </ListItem><ListItem><ListItemText primary={t('enableWS')} />{AppConfig.isElectron && (@@ -239,7 +230,7 @@ function SettingsAdvanced(props: Props) {checked={settings.warningOpeningFilesExternally}/></ListItem>- {isDevMode && (+ {devMode && (<ListItem><ListItemText primary={t('core:tagDelimiter')} /><TsSelect@@ -543,6 +534,26 @@ function SettingsAdvanced(props: Props) {isDefault={tileServerDialog.isDefault}/>)}+ <ListItem>+ <ListItemText+ primary={+ <>+ {t('enableDevMode')}+ <InfoIcon+ tooltip={+ 'Will enable some experimental features and turn on extra debugging'+ }+ />+ </>+ }+ />+ <Switch+ data-tid="settingsEnableDevMode"+ disabled={window.ExtDevMode && window.ExtDevMode === true}+ onClick={() => setDevMode(!devMode)}+ checked={devMode}+ />+ </ListItem></List>);}diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex 9c719f3b5..990970ecd 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -107,7 +107,7 @@"checkForNewVersionOnStartup": "Check for new version on startup","reorderTags": "Enable changing the tag order with drag and drop","calculateTag": "Extracts the tags used in the current folder",- "tagDelimiter": "Tag delimiter (e.g. Filename[TAG1_TAG2], _ is the delimiter)",+ "tagDelimiter": "Tag delimiter (e.g. in Filename[TAG1_TAG2].txt , _ is the delimiter)","prefixTagContainer": "Prefix for the tag container (e.g. in 'Filename_[TAG1].txt', '_' is the prefix)","fileNameHelp": "File name should be at least one character long and should not contain the following characters: # / \\ : * ? \" < > |","directoryNameHelp": "Folder name should be at least one character long and should not contain the following characters: # / \\ : * ? \" < > |",