mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-10 22:24:24 +02:00
macOS: Fix progress bar on dock icon doubling speed with every indeterminate progress state without an intervening clear
Fixes #9114
This commit is contained in:
@@ -1315,8 +1315,10 @@ cocoa_show_progress_bar_on_dock_icon(PyObject *self UNUSED, PyObject *args) {
|
||||
[dock_pbar setFraction:percent/100.];
|
||||
[dock_pbar setIndeterminate:NO];
|
||||
} else if (percent > 100) {
|
||||
[dock_pbar setIndeterminate:YES];
|
||||
tick_dock_pbar();
|
||||
if (![dock_pbar isIndeterminate]) {
|
||||
[dock_pbar setIndeterminate:YES];
|
||||
tick_dock_pbar();
|
||||
}
|
||||
}
|
||||
[dock_pbar setFrameSize:NSMakeSize(dockTile.size.width - 20, 20)];
|
||||
[dock_pbar setFrameOrigin:NSMakePoint(10, -2)];
|
||||
|
||||
@@ -691,10 +691,10 @@ class Window:
|
||||
self.last_focused_at = 0.
|
||||
self.is_focused: bool = False
|
||||
self.progress = Progress()
|
||||
self.clear_progress_timer: int = 0
|
||||
self.last_resized_at = 0.
|
||||
self.started_at = monotonic()
|
||||
self.created_at = time_ns()
|
||||
self.clear_progress_timer: int = 0
|
||||
self.current_remote_data: list[str] = []
|
||||
self.current_mouse_event_button = 0
|
||||
self.current_clipboard_read_ask: bool | None = None
|
||||
|
||||
Reference in New Issue
Block a user