Skip to content

Commit 88efff9

Browse files
itsXuStdeepin-bot[bot]
authored andcommitted
fix: update .gitignore and modify formatDevice function
Updated .gitignore to exclude additional directories: .cursor, .cache, .claude, and build. Modified the formatDevice function in mainwindow.cpp to include a new option 'take-ownership' set to true in the QVariantMap. Log: as above. Bug: https://pms.uniontech.com/bug-view-325935.html
1 parent f3a97d8 commit 88efff9

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
*.user
2+
.cursor/*
3+
.cache/*
4+
.claude/*
5+
build/*

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
dde-device-formatter (0.0.1.18) unstable; urgency=medium
2+
3+
* take disk ownership after formatted.
4+
*
5+
*
6+
7+
-- XuShitong <xushitong@uniontech.com> Sat, 26 Jul 2025 15:52:40 +0800
8+
19
dde-device-formatter (0.0.1.17) unstable; urgency=medium
210

311
* Auto mount after device been formatted.

view/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void MainWindow::formatDevice()
187187
return;
188188
}
189189
}
190-
QVariantMap opt = { { "label", m_mainPage->getLabel() } };
190+
QVariantMap opt = { { "label", m_mainPage->getLabel() }, { "take-ownership", true } };
191191
if (m_mainPage->shouldErase()) opt["erase"] = "zero";
192192
blk->format(m_mainPage->getSelectedFs(), opt);
193193
QDBusError lastError = blk->lastError();

0 commit comments

Comments
 (0)