fix: invalid config errors

This commit is contained in:
CJ van den Berg 2024-10-20 00:40:45 +02:00
parent bcc836b695
commit db7f5f0224
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -81,6 +81,7 @@ fn init(allocator: Allocator) !*Self {
const theme = get_theme_by_name(conf.theme) orelse get_theme_by_name("dark_modern") orelse return tp.exit("unknown theme"); const theme = get_theme_by_name(conf.theme) orelse get_theme_by_name("dark_modern") orelse return tp.exit("unknown theme");
conf.theme = theme.name; conf.theme = theme.name;
conf.whitespace_mode = try allocator.dupe(u8, conf.whitespace_mode);
conf.input_mode = try allocator.dupe(u8, conf.input_mode); conf.input_mode = try allocator.dupe(u8, conf.input_mode);
conf.top_bar = try allocator.dupe(u8, conf.top_bar); conf.top_bar = try allocator.dupe(u8, conf.top_bar);
conf.bottom_bar = try allocator.dupe(u8, conf.bottom_bar); conf.bottom_bar = try allocator.dupe(u8, conf.bottom_bar);