Fix defaults of scan_ui and --enable-* flags

Bit pointless to make these options nullable when you never assign null
to them.
This commit is contained in:
Yorhel 2021-10-06 15:32:42 +02:00
parent 8a23525cac
commit 90873ef956

View file

@ -50,7 +50,7 @@ pub const config = struct {
pub var exclude_patterns: std.ArrayList([:0]const u8) = std.ArrayList([:0]const u8).init(allocator);
pub var update_delay: u64 = 100*std.time.ns_per_ms;
pub var scan_ui: ?enum { none, line, full } = .full;
pub var scan_ui: ?enum { none, line, full } = null;
pub var si: bool = false;
pub var nc_tty: bool = false;
pub var ui_color: enum { off, dark, darkbg } = .off;
@ -68,9 +68,9 @@ pub const config = struct {
pub var sort_dirsfirst: bool = false;
pub var imported: bool = false;
pub var can_delete: ?bool = true;
pub var can_shell: ?bool = true;
pub var can_refresh: ?bool = true;
pub var can_delete: ?bool = null;
pub var can_shell: ?bool = null;
pub var can_refresh: ?bool = null;
pub var confirm_quit: bool = false;
pub var confirm_delete: bool = true;
pub var ignore_delete_errors: bool = false;