aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_events.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-28 13:41:56 +0200
committerjoe <rbo@gmx.us>2025-08-28 13:41:56 +0200
commitf170a2eb3ba93409472f901c1874c95f4f5f378e (patch)
tree7eb89698b9f7c75449814d364b0ae398cf06c53c /src/e_events.go
parentok (diff)
downloadhardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.gz
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.bz2
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.xz
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.zst
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.zip
ye
Diffstat (limited to '')
-rw-r--r--src/e_events.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/e_events.go b/src/e_events.go
index 914756a..35e8faa 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -52,6 +52,7 @@
package main
import (
+ "fmt"
"maps"
"os"
@@ -178,8 +179,9 @@ func e_reload_data(data *HardData) {
tmp_parent_path = data.litems.curr.Host.parent.path()
}
}
+ fmt.Println("reloading config...")
conf_dir := c_get_conf_dir(&data.load_err)
- if conf_dir == "" {
+ if len(conf_dir) == 0 {
data.opts = DEFAULT_OPTS
} else {
data.opts = c_get_options(conf_dir, &data.load_err)
@@ -187,19 +189,19 @@ func e_reload_data(data *HardData) {
data.opts.Loop = false
}
}
- if conf_dir == "" {
+ if len(conf_dir) == 0 {
data.colors = DEFAULT_STYLE
} else {
data.colors = c_get_styles(conf_dir, &data.load_err)
}
i_init_styles(&data.ui, data.colors)
+ fmt.Println("reloading data...")
data.data_dir = c_get_data_dir(&data.ui)
if len(data.data_dir) == 0 {
return
}
- g_load_count = -1
- data.ldirs, data.litems, data.load_err = i_load_ui(data.data_dir, data.opts,
- &data.ui, &data.load_err)
+ data.ldirs, data.litems, data.load_err = i_load_data(data.data_dir, data.opts,
+ &data.load_err)
data.folds = make(map[*DirsNode]*ItemsList)
if tmp_name == "" {
data.litems.curr = data.litems.head