Added set status option
This commit is contained in:
parent
126ec7a881
commit
ac2b9c6a1e
@ -15,6 +15,7 @@
|
|||||||
* Socializer should handle connection errors when loading items in buffers and retry in 2 minutes. Also, connection errors in the chat server are handled and chat should be able to reconnect by itself.
|
* Socializer should handle connection errors when loading items in buffers and retry in 2 minutes. Also, connection errors in the chat server are handled and chat should be able to reconnect by itself.
|
||||||
* When trying to add an audio or video to an album, if the current user does not have any album, it will display an error instead of a traceback.
|
* When trying to add an audio or video to an album, if the current user does not have any album, it will display an error instead of a traceback.
|
||||||
* Added popular and suggested songs. This will not work when using alternative tokens.
|
* Added popular and suggested songs. This will not work when using alternative tokens.
|
||||||
|
* Now it is possible to update the status message, located in your profile.
|
||||||
* Updated Russian translations: thanks to Дарья Ратникова.
|
* Updated Russian translations: thanks to Дарья Ратникова.
|
||||||
|
|
||||||
## Changes in version 0.16 (13.12.2018)
|
## Changes in version 0.16 (13.12.2018)
|
||||||
|
@ -168,6 +168,7 @@ class Controller(object):
|
|||||||
pub.subscribe(self.get_chat, "order-sent-message")
|
pub.subscribe(self.get_chat, "order-sent-message")
|
||||||
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.view_my_profile, menuitem=self.window.view_profile)
|
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.view_my_profile, menuitem=self.window.view_profile)
|
||||||
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.view_my_profile_in_browser, menuitem=self.window.open_in_browser)
|
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.view_my_profile_in_browser, menuitem=self.window.open_in_browser)
|
||||||
|
widgetUtils.connect_event(self.window, widgetUtils.MENU, self.set_status, menuitem=self.window.set_status)
|
||||||
|
|
||||||
def disconnect_events(self):
|
def disconnect_events(self):
|
||||||
log.debug("Disconnecting some events...")
|
log.debug("Disconnecting some events...")
|
||||||
@ -660,4 +661,12 @@ class Controller(object):
|
|||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
if hasattr(self, "longpoll"):
|
if hasattr(self, "longpoll"):
|
||||||
del self.longpoll
|
del self.longpoll
|
||||||
self.create_longpoll_thread(notify=True)
|
self.create_longpoll_thread(notify=True)
|
||||||
|
|
||||||
|
def set_status(self, *args, **kwargs):
|
||||||
|
dlg = wx.TextEntryDialog(self.window, _(u"Write your status message"), _(u"Set status"))
|
||||||
|
if dlg.ShowModal() == widgetUtils.OK:
|
||||||
|
result = dlg.GetValue()
|
||||||
|
info = self.session.vk.client.account.saveProfileInfo(status=result)
|
||||||
|
commonMessages.updated_status()
|
||||||
|
dlg.Destroy()
|
@ -33,3 +33,6 @@ def no_video_albums():
|
|||||||
|
|
||||||
def delete_audio_album():
|
def delete_audio_album():
|
||||||
return wx.MessageDialog(None, _(u"Do you really want to delete this Album? this will be deleted from VK too."), _(u"Attention"), style=wx.ICON_QUESTION|wx.YES_NO).ShowModal()
|
return wx.MessageDialog(None, _(u"Do you really want to delete this Album? this will be deleted from VK too."), _(u"Attention"), style=wx.ICON_QUESTION|wx.YES_NO).ShowModal()
|
||||||
|
|
||||||
|
def updated_status():
|
||||||
|
return wx.MessageDialog(None, _(u"Your status message has been successfully updated."), _(u"Success")).ShowModal()
|
Loading…
Reference in New Issue
Block a user