fix(window): satisfy clippy and stub the new close commands in remote close e2e

Цей коміт міститься в:
l0ng-ai committed 2026-11-25 20:18:56 +08:00
1 джерело 7eb4f97ee2
коміт 9ce975c2d1
3 files changed
+5 -2

No files matched your search

+1 -1
Переглянути файл
@@ -868,7 +868,7 @@ impl Host {
return Ok(current);
}
self.close_project_detached(window);
if let Some(dir) = watch_dir.as_deref() {
if let Some(dir) = watch_dir {
self.wait_detached_closes_for(dir);
}
let sink: SharedSink = (self.sink_for)(window);
+3
Переглянути файл
@@ -44,6 +44,9 @@ async function requestClose(
idlePolicy: { overrideSeconds },
});
window.__ipc.handlers.window_close_context = () => ({ windows, quitting });
window.__ipc.handlers.window_begin_prompt = () => true;
window.__ipc.handlers.window_end_prompt = () => null;
window.__ipc.handlers.window_ready_to_close = () => true;
window.__ipc.handlers.close_project = () => null;
window.__ipc.handlers.remote_invoke = ({ cmd }) => {
if (cmd === "remote_idle_timeout_minutes") {
+1 -1
Переглянути файл
@@ -483,7 +483,7 @@ impl WindowsState {
pub fn abort_all_closing(&self, initiator: Option<&str>) {
{
let mut close = self.close.lock();
let mut targets: Vec<String> = close.pending.drain(..).collect();
let mut targets: Vec<String> = std::mem::take(&mut close.pending);
for label in close.ready.drain() {
if !targets.iter().any(|l| l == &label) {
targets.push(label);