Skip to content

Commit

Permalink
fix: Create new text in the SMB server, double-click to open the text…
Browse files Browse the repository at this point in the history
… editor and edit the text

The mimetype method for reading files is inconsistent, and the parameters passed in using openwithdialog are incorrect

Log: Create new text in the SMB server, double-click to open the text editor and edit the text
Bug: https://pms.uniontech.com/bug-view-267705.html
  • Loading branch information
liyigang1 authored and Johnson-zs committed Sep 3, 2024
1 parent 8fa8b9d commit e23e891
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ bool FileOperationsEventReceiver::handleOperationOpenFiles(const quint64 windowI
dpfSignalDispatcher->publish(DFMBASE_NAMESPACE::GlobalEventType::kMoveToTrash, windowId, fileHandler.getInvalidPath(), AbstractJobHandler::JobFlag::kNoHint, nullptr);
} else {
// deal open file with custom dialog
dpfSlotChannel->push("dfmplugin_utils", "slot_OpenWith_ShowDialog", windowId, fileHandler.getInvalidPath());
dpfSlotChannel->push("dfmplugin_utils", "slot_OpenWith_ShowDialog", windowId, urls);
ok = true;
}
}
Expand Down

0 comments on commit e23e891

Please sign in to comment.