From 3a3623859b7eda1ab8abbe8b8841608439ec81e2 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 1 Feb 2019 11:03:26 -0600 Subject: [PATCH] Changelog should be displayed properly when opened from the help menu. Fixes #21 --- changelog.md | 1 + src/controller/mainController.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 7181c6f..d79daec 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,7 @@ * Fixed errors when moving songs to albums. Now everything works as expected. * Added documents to the list of supported files when adding attachments to a wall post or private message. * It is possible to enable or disable proxy from the preferences dialog. The application must be restarted for this change to take effect. +* Fixed an error that was making Socializer unable to display the changelog properly, when opened from the help menu. ([#21](https://code.manuelcortez.net/manuelcortez/socializer/issues/21)) * Added improvements to groups: * It is possible to load topics, audios and videos for a group. In order to do so, you need to go to the group buffer and press the menu key, or right mouse click, in the tree item representing the group. New buffers will be created inside the current group's buffer. * You can create or delete all buffers for groups by pressing the menu key or right mouse click in the "communities" buffer. diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 9401a47..64e894f 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -361,9 +361,10 @@ class Controller(object): del buffer def changelog(self, *args, **kwargs): - os.chdir("documentation") + lang = localization.get("documentation") + os.chdir("documentation/%s" % (lang,)) webbrowser.open("changelog.html") - os.chdir("../") + os.chdir("../../") def configuration(self, *args, **kwargs): """ Opens the global settings dialogue."""