Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add taskbar menu for trayless OS #411

Merged
merged 10 commits into from Feb 6, 2019

Remove double-try

  • Loading branch information...
tresf
tresf committed Feb 6, 2019
commit eb81213a16b74b48c416adb6ff2f997bf4c272c8
@@ -48,12 +48,9 @@ public static void setTaskBarTitle(String title) {
try {
Class<?> toolkit = Toolkit.getDefaultToolkit().getClass();
if (toolkit.getName().equals("sun.awt.X11.XToolkit")) {
try {
final Field awtAppClassName = toolkit.getDeclaredField("awtAppClassName");
awtAppClassName.setAccessible(true);
awtAppClassName.set(null, title);
}
catch(Exception e) {}
final Field awtAppClassName = toolkit.getDeclaredField("awtAppClassName");
awtAppClassName.setAccessible(true);
awtAppClassName.set(null, title);
}
} catch(Exception ignore) {}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.