federicoiosue / Omni-Notes

Open source note-taking application for Android
https://omninotes.app
GNU General Public License v3.0
2.67k stars 1.11k forks source link

Bug Report: Uncategorized Category in Navigation Not Disappearing When Empty #946

Closed XYIheng closed 6 months ago

XYIheng commented 7 months ago

Description:

The "Uncategorized" category does not disappear from the navigation menu even when there are no notes within it. It seems a regression bug that has been reported https://github.com/federicoiosue/Omni-Notes/issues/401

Reproduce steps:

  1. Open dynamic menu and uncategorized navigation
  2. Create a note without category
  3. See this note appears in the Uncategorized menu. If I add a category to this note, then the Uncategorized menu would disappear in the navigation. Fine.
  4. Delete the note and empty the trash.
  5. See the error: Uncategorized menu still in the navigation.
  6. Kill and restart the app, then the uncategorized menu would disappear.

Expected behavior:

The "Uncategorized" category should automatically disappear from the navigation menu when it contains no notes.

Bug video:

https://github.com/federicoiosue/Omni-Notes/assets/31406320/fda1d96f-ad4c-4e4e-8811-d4016ca9da99

Environment:

Omninotes Version: 6.3.0.Alpha

XYIheng commented 6 months ago

Thanks for your fix!