From 1c67f456bc1117c68fc7a76fc7bedde78a8f530c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 7 Apr 2022 18:27:19 +0800 Subject: Remove delete button --- contents/ui/ActivityView.qml | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'contents/ui/ActivityView.qml') diff --git a/contents/ui/ActivityView.qml b/contents/ui/ActivityView.qml index b6996ba..c08877a 100644 --- a/contents/ui/ActivityView.qml +++ b/contents/ui/ActivityView.qml @@ -84,18 +84,5 @@ RowLayout { plasmoid.configuration.importantActivities = importantActivities } } - - PlasmaComponents3.ToolButton { - icon.name: "delete" - onClicked: () => { - // avoid non-fatal TypeError due to activityView.parent=null but .width=parent.width - activityView.width = 0 - if (type == "announcement") { - announcementsModel.remove(index) - } else { - assignmentsModel.remove(index) - } - } - } } } -- cgit v1.2.3