mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 03:33:36 +03:00
feat(core): expose run_return
on Linux (#3352)
This commit is contained in:
parent
55aa22de80
commit
8483fde975
7
.changes/linux-run-return.md
Normal file
7
.changes/linux-run-return.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
"tauri": patch
|
||||
"tauri-runtime": patch
|
||||
"tauri-runtime-wry": patch
|
||||
---
|
||||
|
||||
The `run_return` API is now available on Linux.
|
@ -1819,7 +1819,6 @@ impl Runtime for Wry {
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "windows", target_os = "macos"))]
|
||||
fn run_iteration<F: FnMut(RunEvent) + 'static>(&mut self, mut callback: F) -> RunIteration {
|
||||
use wry::application::platform::run_return::EventLoopExtRunReturn;
|
||||
let windows = self.windows.clone();
|
||||
|
@ -341,7 +341,6 @@ pub trait Runtime: Sized + 'static {
|
||||
fn set_activation_policy(&mut self, activation_policy: ActivationPolicy);
|
||||
|
||||
/// Runs the one step of the webview runtime event loop and returns control flow to the caller.
|
||||
#[cfg(any(target_os = "windows", target_os = "macos"))]
|
||||
fn run_iteration<F: Fn(RunEvent) + 'static>(&mut self, callback: F) -> RunIteration;
|
||||
|
||||
/// Run the webview runtime.
|
||||
|
@ -516,7 +516,6 @@ impl<R: Runtime> App<R> {
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg(any(target_os = "windows", target_os = "macos"))]
|
||||
pub fn run_iteration(&mut self) -> crate::runtime::RunIteration {
|
||||
let manager = self.manager.clone();
|
||||
let app_handle = self.handle();
|
||||
|
@ -561,7 +561,6 @@ impl Runtime for MockRuntime {
|
||||
#[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
|
||||
fn set_activation_policy(&mut self, activation_policy: tauri_runtime::ActivationPolicy) {}
|
||||
|
||||
#[cfg(any(target_os = "windows", target_os = "macos"))]
|
||||
fn run_iteration<F: Fn(RunEvent) + 'static>(
|
||||
&mut self,
|
||||
callback: F,
|
||||
|
Loading…
Reference in New Issue
Block a user