Skip to content

Commit d74c549

Browse files
committed
Add support for Windows 10
1 parent 3a57038 commit d74c549

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/ro/lmn/maven/dmn/impl/OSType.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public enum OSType {
2323
LINUX("Linux"),
2424
MAC("Mac OS X"),
2525
WINDOWS_7("Windows 7"),
26-
WINDOWS_8("Windows 8");
26+
WINDOWS_8("Windows 8"),
27+
WINDOWS_10("Windows 10");
2728

2829
private String os;
2930

@@ -46,7 +47,7 @@ public static OSType getDetected() {
4647

4748
public boolean isWindows() {
4849

49-
return this == WINDOWS_7 || this == WINDOWS_8;
50+
return this == WINDOWS_7 || this == WINDOWS_8 || this == WINDOWS_10;
5051
}
5152

5253
}

src/main/java/ro/lmn/maven/dmn/impl/WindowsNotifier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void notify(String title, String details, NotificationType notificationTy
4949
@Override
5050
public boolean isAvailable() {
5151
OSType osType = OSType.getDetected();
52-
if (OSType.WINDOWS_7 != osType && OSType.WINDOWS_8 != osType) {
52+
if (OSType.WINDOWS_7 != osType && OSType.WINDOWS_8 != osType && OSType.WINDOWS_10 != osType) {
5353
return false;
5454
}
5555
return heysnarl.exists() && heysnarl.canExecute();

0 commit comments

Comments
 (0)