Skip to content

Commit 2c979c3

Browse files
authored
linux: Fix sentriz#104 Linux platform crash with BorrowMutError. (sentriz#367)
![Screenshot from 2024-10-19 01-20-24](https://github.com/user-attachments/assets/cc0d2250-38ae-4381-a06c-c64ec309ee4c)
1 parent 6ea9e69 commit 2c979c3

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/app/src/story_workspace.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ struct DockAreaTab {
5555

5656
impl StoryWorkspace {
5757
pub fn new(_app_state: Arc<AppState>, cx: &mut ViewContext<Self>) -> Self {
58+
// There will crash on Linux.
59+
// https://github.com/longbridgeapp/gpui-component/issues/104
60+
#[cfg(not(target_os = "linux"))]
5861
cx.observe_window_appearance(|_, cx| {
5962
Theme::sync_system_appearance(cx);
6063
})

0 commit comments

Comments
 (0)