Skip to content

Commit

Permalink
bugfix: API change in Acorus v1.1.1 (!)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Dec 28, 2023
1 parent fd021d6 commit 8940b5b
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2020-2022, Stephen Gold
Copyright (c) 2020-2023, Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -72,7 +72,9 @@ public TbsDisplaySettings(ActionApplication app, String windowTitle,
public boolean canApply() {
boolean result = super.canApply();
if (result) {
AppSettings current = getApplication().getSettings();
ActionApplication application
= (ActionApplication) getApplication();
AppSettings current = application.getSettings();

boolean currentFull = current.isFullscreen();
boolean goFull = !currentFull && isFullscreen();
Expand Down Expand Up @@ -100,7 +102,9 @@ public boolean canApply() {
public String feedbackApplicable() {
String result = super.feedbackApplicable();
if (result.isEmpty()) {
AppSettings current = getApplication().getSettings();
ActionApplication application
= (ActionApplication) getApplication();
AppSettings current = application.getSettings();

boolean currentFull = current.isFullscreen();
boolean goFull = !currentFull && isFullscreen();
Expand Down

0 comments on commit 8940b5b

Please sign in to comment.