fix: auto-open should not run on umounted filesystems
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glenn Y. Rolland 2023-11-24 19:25:50 +01:00
parent 041550cc0f
commit 9f3f3b24c1

View file

@ -101,7 +101,7 @@ module GX
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
mount_or_umount(filesystem) mount_or_umount(filesystem)
auto_open(filesystem) if @config.auto_open auto_open(filesystem) if filesystem.mounted? && @config.auto_open
end end
end end