mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Renamed showUserProfile to user_details to keep compatibility with invisible interface and naming pattern of functions
This commit is contained in:
parent
b3e0b21ee7
commit
d56c8b4372
@ -140,7 +140,7 @@ class Controller(object):
|
|||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.delete, self.view.delete)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.delete, self.view.delete)
|
||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.follow, menuitem=self.view.follow)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.follow, menuitem=self.view.follow)
|
||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.send_dm, self.view.dm)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.send_dm, self.view.dm)
|
||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.showUserProfile, self.view.details)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.user_details, self.view.details)
|
||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.get_more_items, menuitem=self.view.load_previous_items)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.get_more_items, menuitem=self.view.load_previous_items)
|
||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.clear_buffer, menuitem=self.view.clear)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.clear_buffer, menuitem=self.view.clear)
|
||||||
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.remove_buffer, self.view.deleteTl)
|
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.remove_buffer, self.view.deleteTl)
|
||||||
@ -1101,13 +1101,13 @@ class Controller(object):
|
|||||||
if handler:
|
if handler:
|
||||||
handler.update_profile(buffer.session)
|
handler.update_profile(buffer.session)
|
||||||
|
|
||||||
def showUserProfile(self, *args):
|
def user_details(self, *args):
|
||||||
"""Displays a user's profile."""
|
"""Displays a user's profile."""
|
||||||
log.debug("Showing user profile...")
|
log.debug("Showing user profile...")
|
||||||
buffer = self.get_best_buffer()
|
buffer = self.get_best_buffer()
|
||||||
handler = self.get_handler(type=buffer.session.type)
|
handler = self.get_handler(type=buffer.session.type)
|
||||||
if handler and hasattr(handler, 'showUserProfile'):
|
if handler and hasattr(handler, 'user_details'):
|
||||||
handler.showUserProfile(buffer)
|
handler.user_details(buffer)
|
||||||
|
|
||||||
def openPostTimeline(self, *args, user=None):
|
def openPostTimeline(self, *args, user=None):
|
||||||
"""Opens selected user's posts timeline
|
"""Opens selected user's posts timeline
|
||||||
|
@ -304,7 +304,7 @@ class Handler(object):
|
|||||||
log.debug(f"Updating users profile with: {updated_data}")
|
log.debug(f"Updating users profile with: {updated_data}")
|
||||||
call_threaded(session.api_call, "account_update_credentials", _("Update profile"), report_success=True, **updated_data)
|
call_threaded(session.api_call, "account_update_credentials", _("Update profile"), report_success=True, **updated_data)
|
||||||
|
|
||||||
def showUserProfile(self, buffer):
|
def user_details(self, buffer):
|
||||||
"""Displays user profile in a dialog.
|
"""Displays user profile in a dialog.
|
||||||
This works as long as the focused item hass a 'account' key."""
|
This works as long as the focused item hass a 'account' key."""
|
||||||
if not hasattr(buffer, 'get_item'):
|
if not hasattr(buffer, 'get_item'):
|
||||||
|
@ -36,3 +36,4 @@ update_buffer = string(default="control+win+shift+u")
|
|||||||
ocr_image = string(default="win+alt+o")
|
ocr_image = string(default="win+alt+o")
|
||||||
open_in_browser = string(default="alt+control+win+return")
|
open_in_browser = string(default="alt+control+win+return")
|
||||||
add_alias=string(default="")
|
add_alias=string(default="")
|
||||||
|
vote=string(default="alt+win+shift+v")
|
@ -55,3 +55,4 @@ update_buffer = string(default="control+win+shift+u")
|
|||||||
ocr_image = string(default="win+alt+o")
|
ocr_image = string(default="win+alt+o")
|
||||||
open_in_browser = string(default="alt+control+win+return")
|
open_in_browser = string(default="alt+control+win+return")
|
||||||
add_alias=string(default="")
|
add_alias=string(default="")
|
||||||
|
vote=string(default="alt+win+shift+v")
|
@ -57,3 +57,4 @@ ocr_image = string(default="win+alt+o")
|
|||||||
open_in_browser = string(default="alt+control+win+return")
|
open_in_browser = string(default="alt+control+win+return")
|
||||||
add_alias=string(default="")
|
add_alias=string(default="")
|
||||||
find = string(default="control+win+{")
|
find = string(default="control+win+{")
|
||||||
|
vote=string(default="alt+win+shift+v")
|
@ -57,3 +57,4 @@ ocr_image = string(default="win+alt+o")
|
|||||||
open_in_browser = string(default="alt+control+win+return")
|
open_in_browser = string(default="alt+control+win+return")
|
||||||
add_alias=string(default="")
|
add_alias=string(default="")
|
||||||
find = string(default="control+win+{")
|
find = string(default="control+win+{")
|
||||||
|
vote=string(default="alt+win+shift+v")
|
@ -58,3 +58,4 @@ update_buffer = string(default="control+win+shift+u")
|
|||||||
ocr_image = string(default="win+alt+o")
|
ocr_image = string(default="win+alt+o")
|
||||||
open_in_browser = string(default="alt+control+win+return")
|
open_in_browser = string(default="alt+control+win+return")
|
||||||
add_alias=string(default="")
|
add_alias=string(default="")
|
||||||
|
vote=string(default="alt+win+shift+v")
|
@ -15,7 +15,7 @@ actions = {
|
|||||||
"remove_from_favourites": _(u"Remove post from favorites"),
|
"remove_from_favourites": _(u"Remove post from favorites"),
|
||||||
"toggle_like": _("Add/remove post from favorites"),
|
"toggle_like": _("Add/remove post from favorites"),
|
||||||
"follow": _(u"Open the user actions dialogue"),
|
"follow": _(u"Open the user actions dialogue"),
|
||||||
# "user_details": _(u"See user details"),
|
"user_details": _(u"See user details"),
|
||||||
"view_item": _(u"Show post"),
|
"view_item": _(u"Show post"),
|
||||||
"exit": _(u"Quit"),
|
"exit": _(u"Quit"),
|
||||||
"open_timeline": _(u"Open user timeline"),
|
"open_timeline": _(u"Open user timeline"),
|
||||||
|
Loading…
Reference in New Issue
Block a user