From 5a9a7c6d5c6cec0bc1f6fb86f2986c8a5ce377f8 Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 21:37:53 +0000 Subject: [PATCH] HostedPrint::request_refresh asks the app for the printer list again --- crates/print/src/ui/dialog.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/print/src/ui/dialog.rs b/crates/print/src/ui/dialog.rs index a8c0124d6..85aeb96cf 100644 --- a/crates/print/src/ui/dialog.rs +++ b/crates/print/src/ui/dialog.rs @@ -547,6 +547,12 @@ impl HostedPrint { std::mem::take(&mut self.refresh) } + /// Asks for a printer list again on the next pass, as Refresh does: the list the app sent was not the system's + /// (its spooler was busy). + pub fn request_refresh(&mut self) { + self.refresh = true; + } + /// Takes the printer list the app sends; `false` while a discovery or a job runs. pub fn listen(&mut self, printers: Receiver>) -> bool { self.state.listen(printers)