File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
durian-swt/src/main/java/com/diffplug/common/swt Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
- Added ` FlatBtn.setBackground ` and ` FlatBtn.setSelection ` .
6
6
- Added ` Shells.dontSetPositionOrSize ` and ` Shells.setCloseOnEscape ` .
7
7
- Shells now reposition themselves if they were going to open offscreen.
8
+ - Shells no longer set their image on Mac, so that they don't hijack the dock icon.
8
9
- Added ` ControlWrapper.transparent ` for efficiently passing ` Control ` to ` ControlWrapper ` .
9
10
- Improved ` StructuredDrop.handler ` .
10
11
Original file line number Diff line number Diff line change 36
36
37
37
import com .diffplug .common .base .Preconditions ;
38
38
import com .diffplug .common .collect .Maps ;
39
+ import com .diffplug .common .swt .os .WS ;
39
40
import com .diffplug .common .tree .TreeIterable ;
40
41
import com .diffplug .common .tree .TreeQuery ;
41
42
import com .diffplug .common .tree .TreeStream ;
@@ -354,7 +355,7 @@ private void setupShell(Shell shell) {
354
355
if (title != null ) {
355
356
shell .setText (title );
356
357
}
357
- if (image != null ) {
358
+ if (image != null && WS . getRunning () != WS . COCOA ) {
358
359
shell .setImage (image );
359
360
}
360
361
if (alpha != SWT .DEFAULT ) {
You can’t perform that action at this time.
0 commit comments