troylar / quiet-on-the-set

Prevent someone from turning up the volume on a Windows machine beyond a maximum volume

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't increase volume lock after minimizing to tray then restoring

joanbm opened this issue · comments

Steps to trigger

  1. Open Quiet on the Set
  2. Set the volume scroller to a certain threshold, e.g. 50
  3. Click the lock button
  4. Close the window, sending it to the tray
  5. Double click the tray icon in order to restore the window
  6. Click the unlock button
  7. Set the volume scroller to a higher threshold, e.g. 70
  8. Click the lock button

Expected result

Max volume should be set to 70

Actual result

Max volume is actually set to 50

Details

Version: Installer or last commit at this time
OS: Windows 10

Example

sample2

This seems to be because the MouseDoubleClick method actually spawns a new form every time it's double clicked, and therefore the old form is still running and applying the old limit. I will test a fix and send a PR shortly.