Fix cpu spike on osx.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7836 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-03-30 21:11:46 +00:00
committed by derek
parent 83a1370898
commit eda3de3e7d

View File

@ -45,6 +45,12 @@ public final class AppleUtils {
NSApplication.sharedApplication().setApplicationIconImage(defaultImage);
usingDefaultIcon = true;
}
try {
Thread.sleep(100);
}
catch (InterruptedException e) {
Log.error(e);
}
}
else {
final NSImage image = getImageForMessageCountOn();