We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b7243 commit 70e7ae8Copy full SHA for 70e7ae8
src/api/nw_window_api_mac.mm
@@ -78,8 +78,8 @@ - (void)drawRect:(NSRect)dirtyRect {
78
EXTENSION_FUNCTION_VALIDATE(args_->GetDouble(0, &progress));
79
NSDockTile *dockTile = [NSApp dockTile];
80
NWProgressBar *progressIndicator = NULL;
81
-
82
- if (dockTile.contentView == NULL && progress >= 0) {
+
+ if ((dockTile.contentView == NULL || [dockTile.contentView.subviews count] == 0 )&& progress >= 0) {
83
84
// create image view to draw application icon
85
NSImageView *iv = [[NSImageView alloc] init];
@@ -125,6 +125,7 @@ - (void)drawRect:(NSRect)dirtyRect {
125
}
126
127
[dockTile display];
128
+ SendResponse(true);
129
return true;
130
131
0 commit comments