1
0
Fork 0
forked from glenux/mfm

fix: auto-open should not run on umounted filesystems

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?
mount_or_umount(filesystem)
auto_open(filesystem) if @config.auto_open
auto_open(filesystem) if filesystem.mounted? && @config.auto_open
end
end