mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[PR #867] [MERGED] Debounce and batch window settings writes #1167
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#1167
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/desktop/pull/867
Author: @christian-byrne
Created: 2/8/2025
Status: ✅ Merged
Merged: 2/10/2025
Merged by: @webfiltered
Base:
main← Head:cb-debounce-window-setting📝 Commits (5)
e94559aadd debounce to window settings9e3521bfix maximized reset and inline debounce calld9a570aupdate commentcc686a3Update src/main-process/appWindow.ts4d11f0bUpdate src/main-process/appWindow.ts📊 Changes
3 files changed (+36 additions, -15 deletions)
View changed files
📝
package.json(+2 -0)📝
src/main-process/appWindow.ts(+24 -14)📝
yarn.lock(+10 -1)📄 Description
Batches and adds debounce to window position saving to reduce disk writes (currently writes to
window.jsonmany times per second). Use both leading and trailing edge debounce to ensure capture of both immediate changes (like un-maximizing before close) and final positions after movement stops.┆Issue is synchronized with this Notion page by Unito
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.