Skip to content

Commit f3a97d8

Browse files
itsXuStdeepin-bot[bot]
authored andcommitted
fix: auto mount after formatted.
In some file systems, path file attribute lookups will be delayed in returning if you immediately enter a device that has just been formatted. And because of this, some actions in context menu is disabled due to the real read write permission is not obtained when context menu triggered. Auto mount after formatted, so that there could be a large interval user first enter into device, and the permission attributes could be updated correctly. Log: as above. Bug: https://pms.uniontech.com/bug-view-296699.html
1 parent 50c13b1 commit f3a97d8

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
dde-device-formatter (0.0.1.17) unstable; urgency=medium
2+
3+
* Auto mount after device been formatted.
4+
*
5+
6+
-- XuShitong <xushitong@uniontech.com> Wed, 25 Dec 2024 15:14:40 +0800
7+
18
dde-device-formatter (0.0.1.16) unstable; urgency=medium
29

310
* update baseline version to 0.0.1.16

view/mainwindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ void MainWindow::onFormatingFinished(const bool &successful)
244244
m_comfirmButton->setText(tr("Done"));
245245
m_comfirmButton->setEnabled(true);
246246
m_pageStack->setCurrentWidget(m_finishPage);
247+
248+
QTimer::singleShot(0, this, [this] {
249+
UDisksBlock(this->m_formatPath)->mount({});
250+
});
247251
} else {
248252
if (!QFile::exists(m_formatPath)) {
249253
m_currentStep = RemovedWhenFormattingError;

0 commit comments

Comments
 (0)