Closed tmolbergen closed 1 month ago
Without knowing too much about c++ or programming in general, what im suggesting is to do something along the lines of the singlechannel reset function observed here; https://github.com/mcallegari/qlcplus/blob/a76affda86cdae84d7886903c8954502e32615c1/webaccess/src/webaccess.cpp#L732
if (cmdList.count() < 3)
return;
quint32 uniNum = cmdList[2].toUInt() - 1;
m_sd->resetUniverse(uniNum);
Fixed, thanks for reporting :+1:
Describe the bug When trying to reset the simple desk set values back to 'normal' operation, the webinterface will reset whatever universe is selected in the gui and not what is selected in the webinterface
I believe its because the sdResetUniverse function in the websockets api does not take a universe input and reset that specific universe. If you had taken 1 arg on sdResetUniverse, you could then reset the selected universe in the webinterface
I believe the specific culprit can be found in this file on line 743; https://github.com/mcallegari/qlcplus/blob/351ee83b9a3df810d41fd155728d10ae39d5aa6d/webaccess/src/webaccess.cpp#L743
To Reproduce Steps to reproduce the behavior:
Expected behavior The selected universe in the webinterface was reset
Screenshots N/A
Desktop (please complete the following information):
Additional context We are controlling some lights externally from a script, the reason for needing this method to function is to be able to reset the simple desk sliders so that we can use functions pre-setup in QLC (which we are also calling from the api)