NGnius / PowerTools

Moved to
https://git.ngni.us/NG-SD-Plugins/PowerTools
GNU General Public License v3.0
414 stars 29 forks source link

Fix incorrect max boost when enabling threads #6

Closed loki-47-6F-64 closed 2 years ago

loki-47-6F-64 commented 2 years ago

When you set the max boost, disabled threads won't be updated. As a result, they will have the old max boost when enabled.

Steps to reproduce: 1: disable 1 or more threads 2: set the max boost 3: enable 1 or more threads

The re-enabled threads will have the old max boost.

This patch works by storing the max boost, which will be applied after enabling threads.