LauncherTab: check if app2unit exists

This commit is contained in:
lysec
2025-10-16 12:29:06 +02:00
parent 814abf4725
commit dd882401ce
2 changed files with 10 additions and 2 deletions
+8 -2
View File
@@ -95,8 +95,14 @@ ColumnLayout {
NToggle {
label: I18n.tr("settings.launcher.settings.use-app2unit.label")
description: I18n.tr("settings.launcher.settings.use-app2unit.description")
checked: Settings.data.appLauncher.useApp2Unit
onToggled: checked => Settings.data.appLauncher.useApp2Unit = checked
checked: Settings.data.appLauncher.useApp2Unit && ProgramCheckerService.app2unitAvailable
enabled: ProgramCheckerService.app2unitAvailable
opacity: ProgramCheckerService.app2unitAvailable ? 1.0 : 0.6
onToggled: checked => {
if (ProgramCheckerService.app2unitAvailable) {
Settings.data.appLauncher.useApp2Unit = checked
}
}
}
NTextInput {