Warning, /utilities/alpaka/src/apps/qml/GeneralSettingsPage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 import QtQuick
0006 import QtQuick.Controls as Controls
0007 import QtQuick.Layouts
0008 import org.kde.kirigami as Kirigami
0009 import org.kde.kirigamiaddons.formcard as FormCard
0010 import org.kde.alpaka
0011 
0012 FormCard.FormCardPage {
0013     title: i18n("General")
0014 
0015     FormCard.FormHeader {
0016         title: i18n("General settings")
0017     }
0018 
0019     FormCard.FormCard {
0020         FormCard.FormCheckDelegate {
0021             id: closeDelegate
0022             text: i18n("Show in System Tray")
0023             checked: AlpakaSettings.systemTray
0024             visible: Controller.supportSystemTray
0025             enabled: !AlpakaSettings.isSystemTrayImmutable
0026             onToggled: {
0027                 AlpakaSettings.systemTray = checked
0028                 AlpakaSettings.save()
0029             }
0030         }
0031     }
0032 }