Permalink
Browse files

CVCenter: rather use \UI.asClass.isNil to check if UI.registerForShut…

…down or ShutDown.add should be used
  • Loading branch information...
nuss committed Apr 11, 2013
1 parent 7de11fe commit 04cd9fd10c89623ddde93ceabaa404ade0013d45
Showing with 1 addition and 1 deletion.
  1. +1 −1 CVCenter/CVCenter.sc
View
@@ -59,7 +59,7 @@ CVCenter {
this.guiheight_(prefs[\guiProperties] !? { prefs[\guiProperties].height });
});
if(prefs[\saveGuiProperties] == 1, {
- if(Main.versionAtLeast(3, 5), {
+ if(\UI.asClass.isNil, {
ShutDown.add(shutDownFunc);
}, {
UI.registerForShutdown(shutDownFunc);

0 comments on commit 04cd9fd

Please sign in to comment.