Handle maximum channels limit;
Proper handle of a case where the app ends up with more channels from ACLs than is supported
This commit is contained in:
1 parent
ce9af7b4ba
commit
423e51bc27
7 files changed
+111
-72
No files matched your search
@@ -663,7 +663,9 @@ class ChannelList:
|
||||
|
||||
def set_watching(self, channel: Channel):
|
||||
self.clear_watching()
|
||||
self._table.item(channel.iid, tags="watching")
|
||||
iid = channel.iid
|
||||
self._table.item(iid, tags="watching")
|
||||
self._table.see(iid)
|
||||
|
||||
def get_selection(self) -> Optional[Channel]:
|
||||
if not self._channel_map:
|
||||
@@ -676,6 +678,10 @@ class ChannelList:
|
||||
def clear_selection(self):
|
||||
self._table.selection_set('')
|
||||
|
||||
def clear(self):
|
||||
iids = self._table.get_children()
|
||||
self._table.delete(*iids)
|
||||
|
||||
def display(self, channel: Channel, *, add: bool = False):
|
||||
# priority
|
||||
priority = "✔" if channel.priority else "❌"
|
||||
|
||||
Reference in new issue
Block a user