hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.37k stars 157 forks source link

'Decrease location weight' removes location #1248

Closed Xyem closed 2 years ago

Xyem commented 2 years ago

Hydrus version

v495

Qt major version

Qt 6

Operating system

Linux (specify distro and version in comments)

Install method

Third party (AUR, Docker, Chocolatey, etc. Specify in comments)

Install and OS comments

OS: Arch Linux Installation: hydrus package from AUR, using yay

Bug description and reproduction

The Decrease location weight button in database migration has the wrong action attached, it behaves the same as Remove location.

1, Database -> migrate database

  1. Add new location
  2. Select newly created location
  3. Select Decrease location weight
  4. Prompt for removing the location comes up, location is removed if Yes is selected

Log output

No response

Xyem commented 2 years ago

Nevermind, I just discovered that reducing the weight below 1 is triggering the location removal prompt.