ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.34k stars 512 forks source link

Cannot add categories: You have unsaved changes! #987

Closed justyn closed 8 months ago

justyn commented 8 months ago

Describe the bug

When clicking "add category" it doesn't let me, it just says "You have unsaved changes".

I have tried restarting the backend, and opening a new private browsing window, but it makes no difference.

If I click "discard" the message goes away, but it comes back if I try again to add a category.

To Reproduce

  1. Go to Settings
  2. Click: "Add category"

Expected behavior

Not see a message: "You have unsaved changes"

Documentation

image

I can't see anything strange in the logs for aw-server or aw-qt.

Additional context

I have no custom categories, only the defaults.

github-actions[bot] commented 8 months ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

ErikBjare commented 8 months ago

You are misunderstanding the message.

It means you added a category, and now you'd need to save if you want to keep that category/changes, or discard if you don't.

justyn commented 8 months ago

Yep, oops! 🤦

I didn't notice the little blank category that had been added to the list, I guess I was expecting a popup.

Thanks!

Nothing to see here....

ErikBjare commented 8 months ago

I know, we really should add that popup... :)

justyn commented 8 months ago

I think it's just that the "you have unsaved changes" message appears immediately with emphasis/colouring, which draws the eye and you miss the subtle new blank category added to the list.

If you're me, anyway!