summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index a4714a8..592e9f0 100644
--- a/main.qml
+++ b/main.qml
@@ -42,5 +42,18 @@ ApplicationWindow {
}
}
}
+
+ function remove_channel(channel) {
+ for (var i = 0; i < channel_tabs.count; ++i) {
+ if (channel_tabs.itemAt(i).text === channel) {
+ channel_tabs.removeItem(i)
+ }
+ }
+ for (var i = 0; i < swipeView.children.length; ++i) {
+ if (swipeView.children[i].objectName === "channel-"+channel) {
+ swipeView.children[i].destroy()
+ }
+ }
+ }
}
}