Skip to content

Avoid expiring tab data if configuration changes - #3191

Merged
hluk merged 3 commits into
masterfrom
fix-expire-tab
Sep 21, 2025
Merged

hluk merged 3 commits into
masterfrom
fix-expire-tab

Conversation

@hluk

@hluk hluk commented Sep 20, 2025

Copy link
Copy Markdown
Owner

Fixes #3172

Also, enables renaming tabs with item storing disabled.

Renamed tabs will have the same properties as the old one.

@hluk
hluk force-pushed the fix-expire-tab branch 3 times, most recently from 14a47e3 to e854ee3 Compare September 20, 2025 19:05
Enables renaming tabs with item storing disabled.

Renamed tab will have same properties as the old one.
This fixes moving "c" (tab with item) to "b" (group) in the following
tab tree:

    a
    └──b
       └──c
          └──d

The result should be:

    a
    └──c
       └──d

The problem was that "b" group was empty while iterating the tree, which
broke the iteration process. The fix is to delete all empty groups after
the iteration.
@codecov

codecov Bot commented Sep 20, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.00%. Comparing base (6eb0e4b) to head (600b7af).
⚠️ Report is 151 commits behind head on master.

Files with missing lines Patch % Lines
src/gui/mainwindow.cpp 63.41% 15 Missing ⚠️
src/gui/tabtree.cpp 0.00% 10 Missing ⚠️
src/gui/clipboardbrowserplaceholder.cpp 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3191      +/-   ##
==========================================
+ Coverage   78.98%   79.00%   +0.01%     
==========================================
  Files         223      224       +1     
  Lines       29819    29861      +42     
==========================================
+ Hits        23553    23591      +38     
- Misses       6266     6270       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hluk
hluk merged commit 2937f88 into master Sep 21, 2025
11 of 12 checks passed
@hluk
hluk deleted the fix-expire-tab branch September 22, 2025 05:23
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.

History is emptied several times a day and/or due to renaming tabs

1 participant