correctly fetch the guild ID for a channel when setting it in change_channel
This commit is contained in:
parent
11c8b257d1
commit
145586a85e
1 changed files with 3 additions and 2 deletions
|
|
@ -364,9 +364,10 @@ class TextSettingsWindow(SettingsWindow):
|
|||
return
|
||||
c = self.channel_lookup[button.get_active()]
|
||||
self.channel = c
|
||||
channel_guild = self.list_channels[c]["guild_id"]
|
||||
# if the channel is not from the current guild, set the guild too
|
||||
if c["guild_id"] != self.guild:
|
||||
self.guild = c["guild_id"]
|
||||
if channel_guild != self.guild:
|
||||
self.guild = channel_guild
|
||||
self.save_config()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue