Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Settings::getLedEnabled()to read per-LED enabled state across the active device's LED count (0 .. getNumberOfLeds(getConnectedDevice()) - 1).m_ledEnabledinAbstractLedDevice(updateLedEnabled(),updateLedEnabled(const QList<bool>&, bool)), populated duringAbstractLedDevice::updateDeviceSettings()withupdateColors = false.m_ledEnabledinWizardPageUsingDevice::resetDeviceSettings()viadevice()->updateLedEnabled(QList<bool>(), false)so re-enabling previously disabled LEDs works immediately during wizard testing and calibration.Settings::ledEnabledChangedandSettings::currentProfileInitedthroughLedDeviceManager::updateLedEnabled()(LedDeviceCommands::UpdateLedEnabled) inLightpackApplication.cpp, respectingm_backlightStatus != Backlight::StatusOffso updating enabled flags (directly or viaSettings::loadOrCreateProfile()/Settings::resetDefaults()) while backlight is off acks without turning LEDs back on.GrabWidget::settingsProfileChanged()withm_isUpdatingFromSettingsaroundsetIsAreaEnabled()so syncing grab widget UI fromSettingsupdates widget visuals/controls without redundantly re-writingSettings::setLedEnabled()or emitting duplicateledEnabledChangedsignals.AbstractLedDevice::applyColorModifications(), whenm_ledEnabled.count() == inColors.count():(0, 0, 0)(includingrawColorsmode).avgColoronly over enabled LEDs (falling back to black if none are enabled).estimatedTotalAmpsfor disabled LEDs while preserving existing behavior whenm_ledEnabledis empty or has a mismatched length.AbstractLedDevice::applyDithering(), skip disabled LEDs and track dithering carry/index weighting solely over enabled indices so residual dithering carry cannot accumulate from or land on a disabled LED.LedDeviceManagerTestcoveringapplyColorModifications()(minimum luminosity, dead-zone,avgColorexclusion,rawColors, power-supply/WB/brightness-cap, all-disabled, and empty/cleared/mismatchedm_ledEnabled),applyDithering()carry isolation, andSettings::getLedEnabled(),Settings::loadOrCreateProfile(),Settings::resetDefaults(), andLedDeviceManager::updateLedEnabled()in bothStatusOnandStatusOffwithqScopeGuardcleanup.Testing
Softwarewithqmake6 -r && make -j2on Linux (Qt 6.8.2).QT_QPA_PLATFORM=offscreen ./bin/LightpackTests— all 8 test suites passed (GrabCalculationTest: 6/6,SettingsMigrationTest: 5/5,LightpackMathTest: 3/3,LightpackApiTest: 102/102,AppVersionTest: 7/7,LightpackCommandLineParserTest: 9/9,LedDeviceManagerTest: 19/19,PluginHardeningTest: 3/3; 0 failed, 0 skipped).Fixes #529