mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Core: Update 'tweet' menu on the menu bar for mastodon sessions
This commit is contained in:
parent
43ae43ce26
commit
e4f2793aaf
@ -710,6 +710,8 @@ class Controller(object):
|
||||
else:
|
||||
menu_item.Enable(True)
|
||||
menu_item.SetItemLabel(handler.menus[m])
|
||||
if hasattr(handler, "item_menu"):
|
||||
self.view.menubar.SetMenuLabel(1, handler.item_menu)
|
||||
|
||||
def fix_wrong_buffer(self):
|
||||
buf = self.get_best_buffer()
|
||||
@ -1080,8 +1082,9 @@ class Controller(object):
|
||||
for i in sm.removed_sessions:
|
||||
if sessions.sessions[i].logged == True:
|
||||
self.logout_account(sessions.sessions[i].session_id)
|
||||
self.destroy_buffer(sessions.sessions[i].settings["twitter"]["user_name"], sessions.sessions[i].settings["twitter"]["user_name"])
|
||||
self.accounts.remove(sessions.sessions[i].settings["twitter"]["user_name"])
|
||||
self.destroy_buffer(sessions.sessions[i].get_name(), sessions.sessions[i].get_name())
|
||||
if sessions.sessions[i].get_name() in self.accounts:
|
||||
self.accounts.remove(sessions.sessions[i].get_name())
|
||||
sessions.sessions.pop(i)
|
||||
|
||||
def update_profile(self, *args, **kwargs):
|
||||
|
@ -50,6 +50,8 @@ class Handler(object):
|
||||
filter=None,
|
||||
manage_filters=None
|
||||
)
|
||||
# Name for the "tweet" menu in the menu bar.
|
||||
self.item_menu = _("&Post")
|
||||
|
||||
def create_buffers(self, session, createAccounts=True, controller=None):
|
||||
session.get_user_info()
|
||||
|
@ -50,6 +50,8 @@ class Handler(object):
|
||||
filter=_("Create a &filter"),
|
||||
manage_filters=_("&Manage filters"),
|
||||
)
|
||||
# Name for the "tweet" menu in the menu bar.
|
||||
self.item_menu = _("&Tweet")
|
||||
|
||||
def create_buffers(self, session, createAccounts=True, controller=None):
|
||||
session.get_user_info()
|
||||
|
@ -81,7 +81,7 @@ class mainFrame(wx.Frame):
|
||||
|
||||
# Add all to the menu Bar
|
||||
self.menubar.Append(self.menubar_application, _(u"&Application"))
|
||||
self.menubar.Append(self.menubar_item, _(u"&Item"))
|
||||
self.menubar.Append(self.menubar_item, _("&Tweet"))
|
||||
self.menubar.Append(self.menubar_user, _(u"&User"))
|
||||
self.menubar.Append(self.menubar_buffer, _(u"&Buffer"))
|
||||
self.menubar.Append(self.menubar_audio, _(u"&Audio"))
|
||||
|
Loading…
Reference in New Issue
Block a user