Skip to content

Commit f27a936

Browse files
itsXuStJohnson-zs
authored andcommitted
feat: add ownership option to device formatting
- Updated the device formatting options to include a new parameter "take-ownership" set to true. - This enhancement allows for better management of device ownership during formatting. Log: Added ownership option to device formatting. Bug: https://pms.uniontech.com/bug-view-325935.html
1 parent 8d004a8 commit f27a936

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void MainWindow::formatDevice()
219219
qDebug() << "MainWindow: Device is not mounted, proceeding with format";
220220
}
221221

222-
QVariantMap opt = { { "label", m_mainPage->getLabel() } };
222+
QVariantMap opt = { { "label", m_mainPage->getLabel() }, { "take-ownership", true } };
223223
if (m_mainPage->shouldErase()) opt["erase"] = "zero";
224224
blk->format(m_mainPage->getSelectedFs(), opt);
225225
QDBusError lastError = blk->lastError();

0 commit comments

Comments
 (0)