forked from glenux/mfm
fix: auto-open should not run on umounted filesystems
This commit is contained in:
parent
041550cc0f
commit
9f3f3b24c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue