Skip to content

fix(macos): run app.set_theme on main thread - #13443

Merged
Legend-Master merged 2 commits into
tauri-apps:devfrom
Legend-Master:run-set-theme-on-main-thread
May 15, 2025
Merged

fix(macos): run app.set_theme on main thread#13443
Legend-Master merged 2 commits into
tauri-apps:devfrom
Legend-Master:run-set-theme-on-main-thread

Conversation

@Legend-Master

Copy link
Copy Markdown
Contributor

Fix #13439

@github-actions

github-actions Bot commented May 14, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through 6f241ae

There are 7 changes which include tauri-bundler with patch, tauri with minor, tauri-cli with patch, @tauri-apps/api with minor, tauri-utils with minor, @tauri-apps/cli with patch, tauri-runtime-wry with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.5.0 2.6.0
tauri-utils 2.4.0 2.5.0
tauri-bundler 2.4.0 2.4.1
tauri-runtime 2.6.0 2.6.1
tauri-runtime-wry 2.6.0 2.6.1
tauri-codegen 2.2.0 2.2.1
tauri-macros 2.2.0 2.2.1
tauri-plugin 2.2.0 2.2.1
tauri-build 2.2.0 2.2.1
tauri 2.5.1 2.6.0
@tauri-apps/cli 2.5.0 2.5.1
tauri-cli 2.5.0 2.5.1

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Comment on lines +2914 to +2918
self
.context
.main_thread
.window_target
.cursor_position()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this is not needed as Wry is !Send and can only be used on main thread so reverted it back

@Legend-Master
Legend-Master marked this pull request as ready for review May 14, 2025 15:41
@Legend-Master
Legend-Master requested a review from a team as a code owner May 14, 2025 15:41
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.

[bug] My program crashed when I called @tauri-apps/api/app setTheme.

2 participants