diff --git a/samba/filepropertiesplugin/qml/MissingSambaPage.qml b/samba/filepropertiesplugin/qml/MissingSambaPage.qml index 327c4a7..9e2eba7 100644 --- a/samba/filepropertiesplugin/qml/MissingSambaPage.qml +++ b/samba/filepropertiesplugin/qml/MissingSambaPage.qml @@ -6,20 +6,17 @@ import QtQuick 2.12 import QtQuick.Controls 2.5 as QQC2 import QtQuick.Layouts 1.14 -import org.kde.kirigami 2.4 as Kirigami -import org.kde.filesharing.samba 1.0 as Samba +import org.kde.kirigami as Kirigami // When built without packagekit we cannot do auto-installation. -ColumnLayout { - QQC2.Label { - Layout.alignment: Qt.AlignHCenter - Layout.fillWidth: true - text: xi18nc("@info", "The Samba file sharing service must be installed before folders can be shared.") - explanation: i18n("Because this distro does not include PackageKit, we cannot show you a nice \"Install it\" button, and you will have to use your package manager to install the samba server package manually.") - wrapMode: Text.Wrap - } - Item { - Layout.alignment: Qt.AlignHCenter - Layout.fillHeight: true // space everything up +Item { + Kirigami.PlaceholderMessage { + anchors.centerIn: parent + width: parent.width - (Kirigami.Units.largeSpacing * 4) + + icon.name: "dialog-error" + + text: xi18nc("@info", "File sharing service unavailable") + explanation: i18n("Please enable the `services.samba.enable` and `services.samba.usershares.enable` options in your NixOS configuration.") } }