/* SPDX-FileCopyrightText: 2020 Nicolas Fella Add New button to add some") } } footer: Row { spacing: Kirigami.Units.largeSpacing Loader { id: loginFileDialogLoader active: false sourceComponent: FileDialog { id: loginFileDialog title: i18n("Choose Login Script") currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0] onAccepted: { kcm.model.addScript(loginFileDialog.selectedFile, AutostartModel.XdgScripts); loginFileDialogLoader.active = false; } onRejected: loginFileDialogLoader.active = false Component.onCompleted: open() } } Loader { id: logoutFileDialogLoader active: false sourceComponent: FileDialog { id: logoutFileDialog title: i18n("Choose Logout Script") currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0] onAccepted: { kcm.model.addScript(logoutFileDialog.selectedFile, AutostartModel.PlasmaShutdown); logoutFileDialogLoader.active = false; } onRejected: logoutFileDialogLoader.active = false Component.onCompleted: open() } } } }