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

Method onSystrayToggled

src/interface/fragment/SettingsFragment.cpp:361–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361void SettingsFragment::onSystrayToggled()
362{
363 if (_lockslot)
364 {
365 return;
366 }
367
368 AppConfig::instance().set(AppConfig::TrayIconEnabled, ui->systray_r_showtray->isChecked());
369 ui->systray_icon_box->setEnabled(ui->systray_r_showtray->isChecked());
370 ui->menu_edit->setEnabled(ui->systray_r_showtray->isChecked());
371 if(!ui->systray_r_showtray->isChecked()) {
372 ui->systray_minOnBoot->setChecked(false);
373 onAutoStartToggled();
374 }
375}
376
377void SettingsFragment::onThemeSelected(int index)
378{

Callers

nothing calls this directly

Calls 2

setEnabledMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected