File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,11 +58,7 @@ StartManager::StartManager(QObject *parent)
5858 QDir ().mkpath (m_backupDir);
5959 }
6060
61- // 判断是否需要打开上次关闭前的文件
62- bool openSavedTab = Settings::instance ()->settings ->option (" advance.startup.save_tab_before_close" )->value ().toBool ();
63- if (openSavedTab) {
64- m_qlistTemFile = Settings::instance ()->settings ->option (" advance.editor.browsing_history_temfile" )->value ().toStringList ();
65- }
61+ m_qlistTemFile = Settings::instance ()->settings ->option (" advance.editor.browsing_history_temfile" )->value ().toStringList ();
6662 // 初始化书签信息记录表
6763 initBookmark ();
6864
@@ -146,9 +142,6 @@ void StartManager::autoBackupFile()
146142 QFileInfo fileInfo;
147143 m_qlistTemFile.clear ();
148144 listBackupInfo = Settings::instance ()->settings ->option (" advance.editor.browsing_history_temfile" )->value ().toStringList ();
149- if (m_windows.isEmpty ()) {
150- return ;
151- }
152145
153146 // 记录所有的文件信息
154147 for (int var = 0 ; var < m_windows.count (); ++var) {
@@ -226,6 +219,7 @@ void StartManager::autoBackupFile()
226219 }
227220
228221 // 将json串列表写入配置文件
222+ qInfo () << __func__ << " history file counts:" << m_qlistTemFile.size ();
229223 Settings::instance ()->settings ->option (" advance.editor.browsing_history_temfile" )->setValue (m_qlistTemFile);
230224 // 备份书签信息
231225 saveBookmark ();
You can’t perform that action at this time.
0 commit comments