Skip to content

Commit

Permalink
thème : ne pas changer initialExpandLevel en même temps
Browse files Browse the repository at this point in the history
  • Loading branch information
eyssette committed Nov 27, 2024
1 parent 11dda60 commit 239b0b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@
curves = yamlData.hasOwnProperty('curves') ? yamlData.curves : true;
theme = yamlData.hasOwnProperty('theme') ? yamlData.theme : '';
disableWarningMessage = yamlData.hasOwnProperty('disableWarningMessage') ? yamlData.disableWarningMessage : false;
initialExpandLevel = yamlData.hasOwnProperty('initialExpandLevel') ? yamlData.initialExpandLevel : -1;
if(theme == 'focus' || theme == 'nolines' || theme == 'black') {
if(theme == 'focus' || theme == 'nolines') {
maxWidthFromYAML = yamlData.hasOwnProperty('maxWidth') ? yamlData.maxWidth : 250;
initialExpandLevel = yamlData.hasOwnProperty('initialExpandLevel') ? yamlData.initialExpandLevel : 2;
colorFreezeLevel = yamlData.hasOwnProperty('colorFreezeLevel') ? yamlData.colorFreezeLevel : 2;
}
if(theme == 'focus') {
Expand All @@ -152,7 +152,6 @@
}
} else {
maxWidthFromYAML = yamlData.hasOwnProperty('maxWidth') ? yamlData.maxWidth : 500;
initialExpandLevel = yamlData.hasOwnProperty('initialExpandLevel') ? yamlData.initialExpandLevel : -1;
colorFreezeLevel = yamlData.hasOwnProperty('colorFreezeLevel') ? yamlData.colorFreezeLevel : 0;
curves = yamlData.hasOwnProperty('curves') ? yamlData.curves : true;
style = style;
Expand Down

0 comments on commit 239b0b1

Please sign in to comment.