summaryrefslogtreecommitdiff
path: root/src/theming.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-20 21:04:14 +0200
committermathieui <mathieui@mathieui.net>2014-10-20 21:21:04 +0200
commitf9734cde5623aaf701e222b00d5eebdf7a152772 (patch)
tree8f7b241df886d2c17eaee8f3630511631bf8cc3a /src/theming.py
parent7b01c62e07612a123f3ffe94583f51099e470c3b (diff)
downloadpoezio-f9734cde5623aaf701e222b00d5eebdf7a152772.tar.gz
poezio-f9734cde5623aaf701e222b00d5eebdf7a152772.tar.bz2
poezio-f9734cde5623aaf701e222b00d5eebdf7a152772.tar.xz
poezio-f9734cde5623aaf701e222b00d5eebdf7a152772.zip
Remove the (sometimes wrong) default values in the config.get() calls
Diffstat (limited to 'src/theming.py')
-rwxr-xr-xsrc/theming.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theming.py b/src/theming.py
index 9820addf..dc3052f0 100755
--- a/src/theming.py
+++ b/src/theming.py
@@ -455,7 +455,7 @@ def update_themes_dir(option=None, value=None):
# import from the user-defined prefs
themes_dir = path.expanduser(
value or
- config.get('themes_dir', '') or
+ config.get('themes_dir') or
path.join(os.environ.get('XDG_DATA_HOME') or
path.join(os.environ.get('HOME'), '.local', 'share'),
'poezio', 'themes')
@@ -482,7 +482,7 @@ def update_themes_dir(option=None, value=None):
log.debug('Theme load path: %s', load_path)
def reload_theme():
- theme_name = config.get('theme', 'default')
+ theme_name = config.get('theme')
global theme
if theme_name == 'default' or not theme_name.strip():
theme = Theme()