Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

docs(extensions): describe the settings poll backoff where the pollers start

Tw936379f5fdb312
diff --git a/src-tauri/src/app/extensions/macos.rs b/src-tauri/src/app/extensions/macos.rs
index 9d3d94ba..6ffc3187 100644
--- a/src-tauri/src/app/extensions/macos.rs
+++ b/src-tauri/src/app/extensions/macos.rs
@@ -467,7 +467,8 @@ fn loaded(name: &str, extension: Option<Retained<WKWebExtension>>, reason: &str)
}
/// Opens Pake's page of every loaded extension that has one, out of sight,
-/// and asks each one every `settings::INTERVAL` whether there is news.
+/// and asks each one whether there is news on `settings::next_poll_delay`
+/// (every `settings::INTERVAL` while busy, backing off to `IDLE_INTERVAL`).
fn start_settings() {
let Some(mtm) = MainThreadMarker::new() else {
return;
diff --git a/src-tauri/src/app/extensions/windows.rs b/src-tauri/src/app/extensions/windows.rs
index b887bae3..ac7615e2 100644
--- a/src-tauri/src/app/extensions/windows.rs
+++ b/src-tauri/src/app/extensions/windows.rs
@@ -207,7 +207,8 @@ impl Done {
}
/// Opens Pake's page of every added extension that has one, out of sight, and
-/// asks each one every `settings::INTERVAL` whether there is news.
+/// asks each one whether there is news on `settings::next_poll_delay`
+/// (every `settings::INTERVAL` while busy, backing off to `IDLE_INTERVAL`).
fn start_settings(
app: &AppHandle,
core: &ICoreWebView2,