Skip to content
Snippets Groups Projects
Commit 90873ef9 authored by Yorhel's avatar Yorhel
Browse files

Fix defaults of scan_ui and --enable-* flags

Bit pointless to make these options nullable when you never assign null
to them.
parent 8a23525c
Branches
Tags
No related merge requests found
...@@ -50,7 +50,7 @@ pub const config = struct { ...@@ -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 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 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 si: bool = false;
pub var nc_tty: bool = false; pub var nc_tty: bool = false;
pub var ui_color: enum { off, dark, darkbg } = .off; pub var ui_color: enum { off, dark, darkbg } = .off;
...@@ -68,9 +68,9 @@ pub const config = struct { ...@@ -68,9 +68,9 @@ pub const config = struct {
pub var sort_dirsfirst: bool = false; pub var sort_dirsfirst: bool = false;
pub var imported: bool = false; pub var imported: bool = false;
pub var can_delete: ?bool = true; pub var can_delete: ?bool = null;
pub var can_shell: ?bool = true; pub var can_shell: ?bool = null;
pub var can_refresh: ?bool = true; pub var can_refresh: ?bool = null;
pub var confirm_quit: bool = false; pub var confirm_quit: bool = false;
pub var confirm_delete: bool = true; pub var confirm_delete: bool = true;
pub var ignore_delete_errors: bool = false; pub var ignore_delete_errors: bool = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment