cli: Connect disable-eject flag to ImageWriter

This commit is contained in:
Tom Dewey 2024-04-30 14:28:27 +01:00 committed by Tom Dewey
parent 215099e106
commit 16c298beb4

View file

@ -213,6 +213,7 @@ int Cli::main()
_imageWriter->setDst(args[1]); _imageWriter->setDst(args[1]);
_imageWriter->setVerifyEnabled(!parser.isSet("disable-verify")); _imageWriter->setVerifyEnabled(!parser.isSet("disable-verify"));
_imageWriter->setSetting("eject", !parser.isSet("disable-eject"));
/* Run startWrite() in event loop (otherwise calling _app->exit() on error does not work) */ /* Run startWrite() in event loop (otherwise calling _app->exit() on error does not work) */
QTimer::singleShot(1, _imageWriter, &ImageWriter::startWrite); QTimer::singleShot(1, _imageWriter, &ImageWriter::startWrite);