Disable Luks decrypt/deactivate if operation stack is non-empty.
This commit is contained in:
parent
262bda5b3b
commit
f8ecc67811
|
@ -463,7 +463,7 @@ void MainWindow::enableActions()
|
|||
const FS::luks* luksFs = dynamic_cast<const FS::luks*>(&fsRef);
|
||||
|
||||
actionCollection()->action(QStringLiteral("decryptPartition"))
|
||||
->setEnabled(luksFs &&
|
||||
->setEnabled(luksFs && operationStack().size() == 0 &&
|
||||
(luksFs->canCryptOpen(part->partitionPath()) ||
|
||||
luksFs->canCryptClose(part->partitionPath())));
|
||||
if (luksFs) {
|
||||
|
|
Loading…
Reference in New Issue