Skip to content

Commit 8483fde

Browse files
authored
feat(core): expose run_return on Linux (#3352)
1 parent 55aa22d commit 8483fde

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

.changes/linux-run-return.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"tauri": patch
3+
"tauri-runtime": patch
4+
"tauri-runtime-wry": patch
5+
---
6+
7+
The `run_return` API is now available on Linux.

core/tauri-runtime-wry/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,6 @@ impl Runtime for Wry {
18191819
});
18201820
}
18211821

1822-
#[cfg(any(target_os = "windows", target_os = "macos"))]
18231822
fn run_iteration<F: FnMut(RunEvent) + 'static>(&mut self, mut callback: F) -> RunIteration {
18241823
use wry::application::platform::run_return::EventLoopExtRunReturn;
18251824
let windows = self.windows.clone();

core/tauri-runtime/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ pub trait Runtime: Sized + 'static {
341341
fn set_activation_policy(&mut self, activation_policy: ActivationPolicy);
342342

343343
/// Runs the one step of the webview runtime event loop and returns control flow to the caller.
344-
#[cfg(any(target_os = "windows", target_os = "macos"))]
345344
fn run_iteration<F: Fn(RunEvent) + 'static>(&mut self, callback: F) -> RunIteration;
346345

347346
/// Run the webview runtime.

core/tauri/src/app.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ impl<R: Runtime> App<R> {
516516
/// }
517517
/// }
518518
/// ```
519-
#[cfg(any(target_os = "windows", target_os = "macos"))]
520519
pub fn run_iteration(&mut self) -> crate::runtime::RunIteration {
521520
let manager = self.manager.clone();
522521
let app_handle = self.handle();

core/tauri/src/test/mock_runtime.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ impl Runtime for MockRuntime {
561561
#[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
562562
fn set_activation_policy(&mut self, activation_policy: tauri_runtime::ActivationPolicy) {}
563563

564-
#[cfg(any(target_os = "windows", target_os = "macos"))]
565564
fn run_iteration<F: Fn(RunEvent) + 'static>(
566565
&mut self,
567566
callback: F,

0 commit comments

Comments
 (0)