fix failing mobile builds (#1297)

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
This commit is contained in:
7w1 authored and GitHub committed 2026-07-24 15:58:35 -05:00
commit 82d1a2eb99
2 files changed
+5 -5

No files matched your search

+2 -5
View File
@@ -113,10 +113,7 @@ fn load_system_sound(caf_bytes: &[u8], temp_name: &str) -> Option<u32> {
}
unsafe {
let path_str = NSString::from_str(&path.to_string_lossy());
let url: Option<Retained<NSURL>> = msg_send![
NSURL, fileURLWithPath: &*path_str
];
let url = url?;
let url = NSURL::fileURLWithPath(&path_str);
let mut sound_id: u32 = 0;
let status = AudioServicesCreateSystemSoundID(
&*url as *mut _ as *mut objc2::runtime::AnyObject,
@@ -138,7 +135,7 @@ pub(crate) fn play_notification_sound(kind: String) -> Result<(), String> {
} else {
&NOTIFICATION_SOUND
};
let caf = if kind == "invite" {
let caf: &[u8] = if kind == "invite" {
include_bytes!("../resources/invite.caf")
} else {
include_bytes!("../resources/notification.caf")
+3
View File
@@ -179,7 +179,10 @@ pub fn show_or_create_main_window(app: &AppHandle<crate::BrowserEngine>) -> taur
#[cfg(any(target_os = "windows", target_os = "linux"))]
let builder = builder.decorations(!desktop_settings.use_custom_title_bar);
#[cfg(desktop)]
let webview_window = builder.build()?;
#[cfg(not(desktop))]
builder.build()?;
#[cfg(all(feature = "cef", target_os = "linux"))]
setup_cef_resize_workaround(&webview_window)?;