Commit 45e30caf authored by Daniel Brötzmann's avatar Daniel Brötzmann

Bookmarks: Update roster and chat banner on apply

parent 07401332
Pipeline #4091 passed with stages
in 3 minutes and 5 seconds
......@@ -20,6 +20,7 @@ from gi.repository import Gdk
from nbxmpp.structs import BookmarkData
from nbxmpp.protocol import validate_resourcepart
from gajim import message_control
from gajim.common import app
from gajim.common.helpers import validate_jid
from gajim.common.i18n import _
......@@ -152,6 +153,13 @@ class Bookmarks(Gtk.ApplicationWindow):
con = app.connections[self.account]
con.get_module('Bookmarks').bookmarks = bookmarks
con.get_module('Bookmarks').store_bookmarks()
# Update roster and group chat control banners
app.interface.roster.setup_and_draw_roster()
for gc_control in app.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC):
gc_control.draw_banner_text()
self.destroy()
@staticmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment