diff --git a/src/commands/global_tui.cr b/src/commands/global_tui.cr index 9b162dd..0b71acd 100644 --- a/src/commands/global_tui.cr +++ b/src/commands/global_tui.cr @@ -20,7 +20,7 @@ module GX::Commands filesystem = @file_system_manager.choose_filesystem raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? @file_system_manager.mount_or_umount(filesystem) - @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open + @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open? end def self.handles_mode diff --git a/src/commands/mapping_mount.cr b/src/commands/mapping_mount.cr index 9e896eb..7f2a1af 100644 --- a/src/commands/mapping_mount.cr +++ b/src/commands/mapping_mount.cr @@ -20,7 +20,7 @@ module GX::Commands filesystem = @file_system_manager.choose_filesystem raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? filesystem.mount - @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open + @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open? end def self.handles_mode diff --git a/src/config.cr b/src/config.cr index dfba077..78bbbcc 100644 --- a/src/config.cr +++ b/src/config.cr @@ -31,11 +31,11 @@ module GX getter home_dir : String getter root : Models::RootConfig? - property verbose : Bool + property? verbose : Bool property mode : Types::Mode property path : String? property args : AddArgs.class | DelArgs.class | NoArgs.class - property auto_open : Bool + property? auto_open : Bool # FIXME: refactor and remove these parts from here property help_options : Parsers::Options::HelpOptions?