Skip to content

Conversation

timon-schelling
Copy link
Member

Previously, when no preferences were stored, the Load Preferences message was never called. This caused issues with hole-punch setting on desktop not being set correctly. Users had to manually go into settings and toggle Vello off and back on for it to take effect.

This PR fixes the issue by always sending a Load Preferences message from both frontends, even when there are no saved preferences. In that case, preferences are set to None to explicitly indicate that nothing was loaded (default preferences will be used).

@timon-schelling timon-schelling changed the title preference load message on default load Ensure Load Preferences is triggered with None when no preferences exist Sep 20, 2025
@Keavon Keavon changed the title Ensure Load Preferences is triggered with None when no preferences exist Ensure the LoadPreferences message is dispatched with None when no preferences exist Sep 20, 2025
log::error!("Failed to deserialize preferences");
return;
pub fn load_preferences(&self, preferences: Option<String>) {
let preferences = if let Some(preferences) = preferences {
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be a .map() instead of if-let-else?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I guess you need to not be in a closure for the early return.

@Keavon
Copy link
Member

Keavon commented Sep 23, 2025

I haven't QA'd this but my review concerns are addressed so you may merge anytime.

@timon-schelling
Copy link
Member Author

timon-schelling commented Sep 23, 2025

Was waiting on rust-gpu ci issue fix. Did testing locally.

@timon-schelling timon-schelling merged commit d15f63f into master Sep 23, 2025
4 of 6 checks passed
@timon-schelling timon-schelling deleted the preference-load-message-on-default-load branch September 23, 2025 20:19
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