- Hide overlay when discord closes unexpectedly
- Use PNG source for avatars
This commit is contained in:
parent
4d917d30c8
commit
312ba05b26
2 changed files with 5 additions and 1 deletions
|
|
@ -410,6 +410,8 @@ class DiscordConnector:
|
|||
u"%s: %s", guild["name"], channels)
|
||||
self.sub_server()
|
||||
self.find_user()
|
||||
self.voice_overlay.set_enabled(True)
|
||||
self.text_overlay.set_enabled(self.text_settings.enabled)
|
||||
if self.last_text_channel:
|
||||
self.sub_text_channel(self.last_text_channel)
|
||||
|
||||
|
|
@ -424,6 +426,8 @@ class DiscordConnector:
|
|||
Called when connection is closed
|
||||
"""
|
||||
logging.info("Connection closed")
|
||||
self.voice_overlay.hide()
|
||||
self.text_overlay.hide()
|
||||
self.websocket = None
|
||||
|
||||
def req_auth(self):
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ class VoiceOverlayWindow(OverlayWindow):
|
|||
"""
|
||||
# Ensure pixbuf for avatar
|
||||
if user["id"] not in self.avatars and user["avatar"]:
|
||||
url = "https://cdn.discordapp.com/avatars/%s/%s.jpg" % (
|
||||
url = "https://cdn.discordapp.com/avatars/%s/%s.png" % (
|
||||
user['id'], user['avatar'])
|
||||
get_surface(self.recv_avatar, url, user["id"],
|
||||
self.avatar_size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue