From 8e5232ef80e0b497e3c6b62bf17cce416a1603f4 Mon Sep 17 00:00:00 2001 From: Adrian Edwards <17362949+MoralCode@users.noreply.github.com> Date: Sun, 18 Oct 2020 16:12:12 -0700 Subject: [PATCH] create a function for populating top-level guild lookup lists --- discover_overlay/text_settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/discover_overlay/text_settings.py b/discover_overlay/text_settings.py index 03ca804..295005a 100644 --- a/discover_overlay/text_settings.py +++ b/discover_overlay/text_settings.py @@ -108,6 +108,13 @@ class TextSettingsWindow(SettingsWindow): if in_list[key]["type"] == 0: self.list_channels_keys.append(key) self.list_channels_keys.sort() + + def set_guilds(self, in_list): + self.list_guilds = in_list + self.list_guilds_keys = [] + for key in in_list.keys(): + self.list_guilds_keys.append(key) + self.list_guilds_keys.sort() def read_config(self): config = ConfigParser(interpolation=None)