MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / onPaletteSelected

Method onPaletteSelected

src/interface/fragment/SettingsFragment.cpp:387–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void SettingsFragment::onPaletteSelected(int index)
388{
389 if (_lockslot)
390 {
391 return;
392 }
393
394 AppConfig::instance().set(AppConfig::ThemeColors, ui->paletteSelect->itemData(index).toString());
395 ui->paletteConfig->setEnabled(AppConfig::instance().get<QString>(AppConfig::ThemeColors) == "custom");
396}
397
398void SettingsFragment::onBlocklistInvertToggled(bool state)
399{

Callers

nothing calls this directly

Calls 2

setEnabledMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected