Skip to content

Export improvements - #11262

Merged
grliszas14 merged 2 commits into
audacity:masterfrom
grliszas14:trim_export
Jun 29, 2026
Merged

grliszas14 merged 2 commits into
audacity:masterfrom
grliszas14:trim_export

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Resolves: #11120
Resolves: #9663

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 379cff79-43ab-446c-b38e-8f98a37b8473

📥 Commits

Reviewing files that changed from the base of the PR and between 89569203b33eb70e5eb376227600781af0508f4f and b19e5e6.

📒 Files selected for processing (7)
  • src/importexport/export/iexportconfiguration.h
  • src/importexport/export/internal/au3/au3exporter.cpp
  • src/importexport/export/internal/exportconfiguration.cpp
  • src/importexport/export/internal/exportconfiguration.h
  • src/importexport/export/qml/Export/ExportDialog.qml
  • src/importexport/export/view/exportpreferencesmodel.cpp
  • src/importexport/export/view/exportpreferencesmodel.h

📝 Walkthrough

Walkthrough

The export configuration interface and implementation now expose a trim-blank-space setting backed by stored settings. ExportPreferencesModel forwards that setting, emits change notifications, and adds a suggestedFilePath property derived from the directory, filename, and current format. ExportDialog binds the trim checkbox and uses the suggested file path for the file picker. Au3Exporter adjusts the export start time when trim blank space is enabled.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant ExportDialog
  participant ExportPreferencesModel
  participant ExportConfiguration
  participant Settings

  User->>ExportDialog: toggles trim blank space
  ExportDialog->>ExportPreferencesModel: setTrimBlankSpace(trim)
  ExportPreferencesModel->>ExportConfiguration: setTrimBlankSpace(trim)
  ExportConfiguration->>Settings: write importexport/trimBlankSpace
  Settings-->>ExportConfiguration: valueChanged
  ExportConfiguration-->>ExportPreferencesModel: trimBlankSpaceChanged()
  ExportPreferencesModel-->>ExportDialog: trimBlankSpaceChanged()
Loading
sequenceDiagram
  participant ExportDialog
  participant ExportPreferencesModel
  participant Au3Exporter

  ExportDialog->>ExportPreferencesModel: suggestedFilePath
  ExportDialog->>ExportPreferencesModel: trimBlankSpace
  ExportDialog->>Au3Exporter: exportData(...)
  Au3Exporter->>Au3Exporter: compute earliest track start
  Au3Exporter->>Au3Exporter: update m_t0 when trimBlankSpace is enabled
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is generic and doesn't identify the actual export changes or affected behavior. Use a specific title naming the main change, such as enabling trim blank space and preserving the Browse file name.
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description includes issue links and the requested checklist, though it lacks a brief narrative summary.
Linked Issues check ✅ Passed The changes implement both linked issues by enabling trim blank space and preserving the export Browse file name.
Out of Scope Changes check ✅ Passed The diff stays focused on export dialog/configuration changes needed for the linked issues.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Linked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped musescore/musescore.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: a1ffa898-9c36-473b-8b62-d2b60d40ebba

📥 Commits

Reviewing files that changed from the base of the PR and between 34c6574 and a28b098a0acd1cb0e4b1b4f6a103329d019be3e8.

📒 Files selected for processing (7)
  • src/importexport/export/iexportconfiguration.h
  • src/importexport/export/internal/au3/au3exporter.cpp
  • src/importexport/export/internal/exportconfiguration.cpp
  • src/importexport/export/internal/exportconfiguration.h
  • src/importexport/export/qml/Export/ExportDialog.qml
  • src/importexport/export/view/exportpreferencesmodel.cpp
  • src/importexport/export/view/exportpreferencesmodel.h

@grliszas14
grliszas14 merged commit 539acfa into audacity:master Jun 29, 2026
3 of 10 checks passed
@grliszas14
grliszas14 deleted the trim_export branch June 29, 2026 11:37
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.

Implement 'trim blank space during export' When exporting audio, if the name is 'Untitled', that name is not passed when clicking Browse

2 participants