Skip to content

Commit 8940b5b

Browse files
committed
bugfix: API change in Acorus v1.1.1 (!)
1 parent fd021d6 commit 8940b5b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/src/main/java/jme3utilities/nifty/test/TbsDisplaySettings.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2020-2022, Stephen Gold
2+
Copyright (c) 2020-2023, Stephen Gold
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without
@@ -72,7 +72,9 @@ public TbsDisplaySettings(ActionApplication app, String windowTitle,
7272
public boolean canApply() {
7373
boolean result = super.canApply();
7474
if (result) {
75-
AppSettings current = getApplication().getSettings();
75+
ActionApplication application
76+
= (ActionApplication) getApplication();
77+
AppSettings current = application.getSettings();
7678

7779
boolean currentFull = current.isFullscreen();
7880
boolean goFull = !currentFull && isFullscreen();
@@ -100,7 +102,9 @@ public boolean canApply() {
100102
public String feedbackApplicable() {
101103
String result = super.feedbackApplicable();
102104
if (result.isEmpty()) {
103-
AppSettings current = getApplication().getSettings();
105+
ActionApplication application
106+
= (ActionApplication) getApplication();
107+
AppSettings current = application.getSettings();
104108

105109
boolean currentFull = current.isFullscreen();
106110
boolean goFull = !currentFull && isFullscreen();

0 commit comments

Comments
 (0)