diff options
author | Joe Robinson <joe@grabyo.com> | 2017-04-20 17:02:28 +0100 |
---|---|---|
committer | Joe Robinson <joe@grabyo.com> | 2017-04-20 17:02:28 +0100 |
commit | 04a26f18dd9841c07aeb0fbbb1b30e71308ba068 (patch) | |
tree | af74cea19af4cff73bb48a790a003584d8557bfe /main.qml | |
parent | 4e172068e8e817d80d2e9575289feb8a4314be49 (diff) |
Add ability to /part channels
Diffstat (limited to 'main.qml')
-rw-r--r-- | main.qml | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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() + } + } + } } } |