Skip to content

Commit

Permalink
add deprecation warning on server argument
Browse files Browse the repository at this point in the history
  • Loading branch information
capital-G committed Jul 1, 2021
1 parent 8581014 commit 21d5858
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SCClassLibrary/Common/GUI/Base/QWindow.sc
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,14 @@ Window {
bounds,
resizable = true,
border = true,
deprecatedServerArgument,
scroll = false;

if(deprecatedServerArgument.notNil) {
// see https://github.com/supercollider/supercollider/pull/5312#discussion_r553546303
"this argument is deprecated, it was kept for SwingOSC compatibility, but will be removed".warn;
};

if( bounds.isNil ) {
bounds = Rect(0,0,400,400).center_( Window.availableBounds.center );
}{
Expand Down

0 comments on commit 21d5858

Please sign in to comment.