Skip to content

fix(web): save an app that has no cover image - #5986

Closed
flashboss wants to merge 4 commits into
LizardByte:masterfrom
flashboss:application_single_window
Closed

flashboss wants to merge 4 commits into
LizardByte:masterfrom
flashboss:application_single_window

Conversation

@flashboss

Copy link
Copy Markdown

Description

Saving an application with no image used to stop, so nothing was stored. The save now goes through. No new cover is created: the app keeps the initial letter already shown in the list.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • [ x] fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • [x ] Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Luca Stancapiano added 4 commits October 23, 2026 21:15
…splay

Keep display capture as the default, and end the session when the selected window or application disappears.
Give the encoder a blank frame instead of opening a second ScreenCaptureKit stream, and allow saving an app that has no cover image.
…hanges

Capture that window independently of the current desktop, so switching spaces does not change the stream.
Saving stopped when the image path was missing. Omit the empty path so the existing initial-letter placeholder remains.
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
31 New issues
2 New Bugs (required ≤ 0)
E Reliability Rating on New Code (required ≥ A)
28 New Code Smells (required ≤ 0)
1 New Vulnerabilities (required ≤ 0)
D Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

}

TEST(CaptureSourceTest, AppsJsonSelectsWindowCapture) {
const auto path = std::filesystem::temp_directory_path() / "sunshine_capture_source_apps.json";
Comment thread src/capture_source.cpp
std::copy_n(audio_samples.begin(), needed, source.begin());
audio_samples.erase(audio_samples.begin(), audio_samples.begin() + static_cast<std::ptrdiff_t>(needed));
const auto produced = produced_audio;
lock.unlock();
@flashboss flashboss changed the title Save an app that has no cover image fix(web): Save an app that has no cover image Oct 24, 2026
@flashboss flashboss changed the title fix(web): Save an app that has no cover image fix(web): save an app that has no cover image Oct 24, 2026
@flashboss flashboss closed this Oct 24, 2026
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