Skip to content

24724 - Increased MAX_PACKAGE_SIZE so the UI_THEMES_KEY setting can be synced - #26091

Merged
Eism merged 1 commit into
musescore:masterfrom
krasko78:24724-ThemeSettingsDontSyncBetweenInstances
Jan 15, 2025
Merged

Eism merged 1 commit into
musescore:masterfrom
krasko78:24724-ThemeSettingsDontSyncBetweenInstances

Conversation

@krasko78

Copy link
Copy Markdown
Contributor

Resolves: #24724
Resolves: #25323

I've bumped up MAX_PACKAGE_SIZE from 2048 to 4096 so that the UI_THEMES_KEY setting can be synced between all open instances when the current theme or any of its properties change. The size of the UI_THEMES_KEY setting on my machine is 3531 bytes (holds 4 themes). Also added a size check for when sending a package.

  • I signed the CLA
  • The title of the PR describes the problem it addresses
  • Each commit's message describes its purpose and effects, and references the issue it resolves
  • If changes are extensive, there is a sequence of easily reviewable commits
  • The code in the PR follows the coding rules
  • There are no unnecessary changes
  • The code compiles and runs on my machine, preferably after each commit individually
  • I created a unit test or vtest to verify the changes I made (if applicable)

@krasko78
krasko78 force-pushed the 24724-ThemeSettingsDontSyncBetweenInstances branch 2 times, most recently from 518b690 to 7c62983 Compare January 14, 2025 20:18
@DmitryArefiev

Copy link
Copy Markdown
Contributor

Tested #24724 on Win10, Mac13.6, LinuxUbuntu24.04.1 LTS - FIXED

I can't check #25323 because unable to reproduce (in regular mode, not debug mode)

@krasko78
krasko78 force-pushed the 24724-ThemeSettingsDontSyncBetweenInstances branch from 7c62983 to 0a9265c Compare January 15, 2025 16:07
@Eism
Eism merged commit a7e265d into musescore:master Jan 15, 2025
@krasko78
krasko78 deleted the 24724-ThemeSettingsDontSyncBetweenInstances branch January 15, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants