PilatusDevs / StatusPilatus

Monitor your PC like never before!
GNU General Public License v3.0
58 stars 10 forks source link

GPU(s) keep getting added to list #48

Closed M4Yt closed 5 years ago

M4Yt commented 5 years ago

Expected Behavior

Each GPU is added to the list of GPUs once.

Actual Behavior

GPUs can be added to the list multiple times. pastedimage 1

Possible Solution

Make sure the same GPUs don't get added again by setting the saved array to the result instead of adding to the array, or check to see if the function was already activated.

Steps to Reproduce (for bugs)

Providing your machine is slow enough, you'll be able to click the GPU tab multiple times before the GPU data is loaded, this is what causes a function to trigger multiple times.

MeesMaas commented 5 years ago

Spamming the GPU button for the first time after StatusPilatus is launched also reproduces this bug