From 92a67aaa55f5fee4a2b9a7357f1b9956a84cd188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 1 Oct 2020 20:58:23 +0200 Subject: State: add options for attachment saving use Data.Default for Much.State.State, Much.State.ColorConfig, Much.API.Config refactor saveAttachment and openAttachment actions --- src/Much/Config.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Much/Config.hs') diff --git a/src/Much/Config.hs b/src/Much/Config.hs index 5f4d6db..53c2891 100644 --- a/src/Much/Config.hs +++ b/src/Much/Config.hs @@ -12,6 +12,8 @@ data Config = Config { colorConfig :: Maybe (ColorConfig (Maybe [Word8])) , query :: Maybe String , tagSymbols :: Maybe (M.Map T.Text T.Text) + , attachmentOverwrite :: Maybe Bool + , attachmentDirectory :: Maybe FilePath } deriving (Generic, Show) instance FromJSON Config -- cgit v1.2.3