Skip to content

Commit 075815d

Browse files
lichaofan2008deepin-bot[bot]
authored andcommitted
fix: The "Do not keep tabs" feature is not working.
When the application starts, it needs to first determine whether to restore tabs. fix: 不保留标签页功能未生效。 应用启动的时候,需要先判断是否需要恢复标签页。
1 parent 2b6c0b5 commit 075815d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/startmanager.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ StartManager::StartManager(QObject *parent)
5858
QDir().mkpath(m_backupDir);
5959
}
6060

61-
m_qlistTemFile = Settings::instance()->settings->option("advance.editor.browsing_history_temfile")->value().toStringList();
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+
}
6266
// 初始化书签信息记录表
6367
initBookmark();
6468

0 commit comments

Comments
 (0)