File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/io/github/coursesplus/installer Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,14 @@ public CoursesPlusInstaller() {
52
52
53
53
screenSize = java .awt .Toolkit .getDefaultToolkit ().getScreenSize ();
54
54
55
- Application .getApplication ().setDockIconImage (new ImageIcon (getClass ().getResource ("Logo.png" )).getImage ());
55
+ try {
56
+ Application .getApplication ().setDockIconImage (new ImageIcon (getClass ().getResource ("Logo.png" )).getImage ());
57
+ } catch (Exception e ) {
58
+ // icon isn't that important, continue
59
+ // but log it
60
+ logger .log (Level .WARNING , "Failed to load icon - " + e .getMessage (), e );
61
+ }
56
62
57
- System .setProperty ("com.apple.mrj.application.apple.menu.about.name" , "CoursesPlus Installer" );
58
-
59
63
try {
60
64
// try and load Lato
61
65
font = Font .createFont (Font .TRUETYPE_FONT , getClass ().getResourceAsStream ("Lato-Regular.ttf" ));
You can’t perform that action at this time.
0 commit comments