Skip to content

Commit

Permalink
fix: prevent updating outputFormat to reinit enex or outputDir (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Feb 25, 2023
1 parent e120b2a commit 79055a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/assets/js/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const updateConfigStore = (configItemName, value) => {
}
const updateDomByFlatConfig = (flatConfig, disable) => {
for (const configItem in flatConfig){
if (configItem !== 'outputFormat'){
if (configItem !== 'outputFormat' && !configItem.startsWith('enexSources') && configItem!== 'outputDir'){
const domItem = document.getElementById(configItem);
if (domItem){
if (domItem.getAttribute('type') === 'checkbox'){
Expand Down
2 changes: 1 addition & 1 deletion src/ui/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function isBooleanString(value) {

const updateDomByFlatConfig = (flatConfig, disable) => {
for (const configItem in flatConfig){
if (configItem !== 'outputFormat'){
if (configItem !== 'outputFormat' && !configItem.startsWith('enexSources') && configItem!== 'outputDir'){
const domItem = document.getElementById(configItem);
if (domItem){
if (domItem.getAttribute('type') === 'checkbox'){
Expand Down

0 comments on commit 79055a8

Please sign in to comment.