When attempting to delete a category that contains no notes, the app erroneously displays a prompt indicating that this category is used by some notes.
I think if there are no notes under the category, the prompt shouldn't be displayed. Because the prompt indicates that there are notes in the category.
Reproduce steps:
create a new category 'A' in one note
assign the note to another category. (so there is no note under the category 'A' )
delete the category 'A'
see the error: a prompt displays
Expected behavior:
If there are no notes under the category, then the prompt should not display
Description:
When attempting to delete a category that contains no notes, the app erroneously displays a prompt indicating that this category is used by some notes.
I think if there are no notes under the category, the prompt shouldn't be displayed. Because the prompt indicates that there are notes in the category.
Reproduce steps:
Expected behavior:
If there are no notes under the category, then the prompt should not display
Bug video:
https://github.com/federicoiosue/Omni-Notes/assets/31406320/b93543df-bff2-4626-9c74-9d84b9e812a2
Environment: Omninotes Version: 6.3.0Alpha