Show notifications

This commit is contained in:
Tobias Fella
2020-11-18 00:50:07 +01:00
parent 9c469b96f1
commit 039816e8eb
10 changed files with 75 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
/**
* SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.14
import QtQuick.Controls 2.14 as QQC2
import QtQuick.Layouts 1.14
import org.kde.kirigami 2.12 as Kirigami
import org.kde.neochat 1.0
Kirigami.ScrollablePage {
title: i18n("Settings")
Kirigami.FormLayout {
QQC2.CheckBox {
id: showNotifications
Kirigami.FormData.label: i18n("Show Notifications:")
checked: Config.showNotifications
}
QQC2.Button {
text: i18n("Save")
onClicked: {
Config.showNotifications = showNotifications.checked;
Config.save();
}
}
}
}

View File

@@ -5,4 +5,5 @@ RoomListPage 1.0 RoomListPage.qml
RoomPage 1.0 RoomPage.qml
JoinRoomPage 1.0 JoinRoomPage.qml
InviteUserPage 1.0 InviteUserPage.qml
SettingsPage 1.0 SettingsPage.qml