diff options
author | Joe <rbo@gmx.us> | 2024-02-01 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-01 20:20:20 +0100 |
commit | 84daefea1ae1dec8fe511707664c9a9fe12aef0b (patch) | |
tree | 4be83c9109062a43d51a36bdcea857fcfe4628d0 /src/i_events.go | |
parent | conf (diff) | |
download | hardflip-84daefea1ae1dec8fe511707664c9a9fe12aef0b.tar.gz hardflip-84daefea1ae1dec8fe511707664c9a9fe12aef0b.tar.bz2 hardflip-84daefea1ae1dec8fe511707664c9a9fe12aef0b.tar.xz hardflip-84daefea1ae1dec8fe511707664c9a9fe12aef0b.tar.zst hardflip-84daefea1ae1dec8fe511707664c9a9fe12aef0b.zip |
will read conf
Diffstat (limited to 'src/i_events.go')
-rw-r--r-- | src/i_events.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i_events.go b/src/i_events.go index 974de32..71b7386 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -166,6 +166,12 @@ func i_fold_dir(data *HardData, item *ItemsNode) { } func i_reload_data(data *HardData) { + conf_dir := c_get_conf_dir(&data.load_err) + if conf_dir == "" { + data.opts = DEFAULT_OPTS + } else { + data.opts = c_get_options(conf_dir, &data.load_err) + } data.data_dir = c_get_data_dir(&data.ui) if data.data_dir == "" { return @@ -174,7 +180,6 @@ func i_reload_data(data *HardData) { data.ldirs, data.litems, data.load_err = i_load_ui(data.data_dir, data.opts, &data.ui, &data.load_err) data.folds = make(map[*DirsNode]*ItemsList) - // TODO: reload conf } func i_delete_dir(data *HardData) error { |