mayurankv / Obsidian-Code-Styler

A plugin for Obsidian.md for styling codeblocks and inline code
Other
287 stars 10 forks source link

Bug: Generating a new theme based on the initial default creates an undeletable theme #270

Open igniscyan opened 5 months ago

igniscyan commented 5 months ago

Describe the bug

I created a theme, a little over eagerly, when the default was selected. I named this theme 'test'. Now, when I attempt to delete it, I get an error prompting "Default themes can't be deleted".

Steps to reproduce

Select default theme, enter a new theme name and save, then attempt to delete new theme.

Expected behaviour

Should be able to delete anything that isn't 'Default'

Current behaviour

Unable to delete forks of 'Default' as well.

Environment

Screenshots

image

Additional context

mayurankv commented 1 month ago

Ahh really sorry about this. A temporary fix would be to delete the entry from the data.json file in the plugin folder but I'll look into fixing this!