summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Plugins/Monitors/MPD.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-30 22:23:10 +0100
committerjao <jao@gnu.org>2022-03-30 22:23:10 +0100
commit7af1ddc5ebbe9d651ffbc057614be18637e69939 (patch)
tree1b754ad28c697ced892215c43378b39afa58bc2b /src/Xmobar/Plugins/Monitors/MPD.hs
parent211af7d4cb5b29e71bcfbedae8f8c86009e99ad0 (diff)
downloadxmobar-7af1ddc5ebbe9d651ffbc057614be18637e69939.tar.gz
xmobar-7af1ddc5ebbe9d651ffbc057614be18637e69939.tar.bz2
Fix: consistent use of configured nastring instead of hardcoded N/A
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/MPD.hs')
-rw-r--r--src/Xmobar/Plugins/Monitors/MPD.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Xmobar/Plugins/Monitors/MPD.hs b/src/Xmobar/Plugins/Monitors/MPD.hs
index c8c2dc9..7ecbc0c 100644
--- a/src/Xmobar/Plugins/Monitors/MPD.hs
+++ b/src/Xmobar/Plugins/Monitors/MPD.hs
@@ -95,7 +95,8 @@ mpdReady args = do
parseMPD :: M.Response M.Status -> M.Response (Maybe M.Song) -> MOpts
-> Monitor [String]
-parseMPD (Left _) _ _ = return $ "N/A": repeat ""
+parseMPD (Left _) _ _ =
+ getConfigValue naString >>= \na -> return $ na : repeat ""
parseMPD (Right st) song opts = do
songData <- parseSong song
bar <- showPercentBar (100 * b) b