Skip to content

[1170] 大纲侧边栏默认关闭 - #4227

Merged
da-liii merged 2 commits into
MoganLab:mainfrom
da-liii:da/1170/tree_view
Aug 7, 2026
Merged

da-liii merged 2 commits into
MoganLab:mainfrom
da-liii:da/1170/tree_view

Conversation

@da-liii

@da-liii da-liii commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

PDF 阅读器与文档编辑器的树形目录侧边栏改为默认关闭,新增偏好设置 outline sidebar(默认 off)控制。

Why

该功能仍在探索阶段,默认开启会影响所有用户的界面布局。先默认关闭,需要时通过 (set-preference "outline sidebar" "on") 开启。

How

  • qt_pdf_outline_widget.cpp:新增 outline_sidebar_enabled() 读取偏好;两个 setOutline 重载和 loadDocumentOutline 在开关关闭时直接清空并隐藏 dock,跳过 scheme 求值
  • qt_tm_widget.cpp:update_visibility 两处 dock 可见性计算增加开关判断,运行时关闭偏好后已显示的 dock 也会被隐藏

🤖 Generated with Claude Code

@Yuki-Nagori Yuki-Nagori left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@da-liii
da-liii merged commit aff98cd into MoganLab:main Aug 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants