Fix/quick access open mode (#2239)

* fix/quick_access_open_mode

* fix/quick_access_open_mode

* adj quick access open mode location

* adj quick access open mode location
This commit is contained in:
chendapao 2022-09-17 18:07:15 +08:00 committed by GitHub
parent a25b75f828
commit 1d94617837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -767,5 +767,9 @@ void ToolBarHelper::setupMenuButton(MainWindow *p_win, QToolBar *p_toolBar)
void ToolBarHelper::activateQuickAccess(const QString &p_file)
{
emit VNoteX::getInst().openFileRequested(p_file, QSharedPointer<FileOpenParameters>::create());
const auto &coreConfig = ConfigMgr::getInst().getCoreConfig();
auto paras = QSharedPointer<FileOpenParameters>::create();
paras->m_mode = coreConfig.getDefaultOpenMode();
emit VNoteX::getInst().openFileRequested(p_file, paras);
}