kcms/tabbox: Fix preview for show desktop option

Use the correct config option to decide whether to show the desktop
thumbnail on preview. "DesktopMode" refers to filter by desktop.
This commit is contained in:
Ismael Asensio 2024-01-13 00:04:27 +01:00
parent 7d1db53f6b
commit 20bee00681

View file

@ -265,7 +265,7 @@ void KWinTabBoxConfig::configureEffectClicked()
if (form->effectComboCurrentData(KWinTabBoxConfigForm::AddonEffect).toBool()) {
// Show the preview for addon effect
new LayoutPreview(form->effectComboCurrentData(KWinTabBoxConfigForm::LayoutPath).toString(),
form->config()->desktopMode(),
form->config()->showDesktopMode(),
this);
}
}