Skip to content

Commit

Permalink
empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rjolly committed May 24, 2020
1 parent e291c94 commit 35f4e5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ protected void done() {
} catch (final ExecutionException ex) {
ex.printStackTrace();
}
initPref();
for (final Map.Entry<String, App> entry : getMapPref("preferred").entrySet()) {
pref.put(getMimeType(entry.getKey()), entry.getValue());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public class PreferenceSupport extends Frame implements PreferenceChangeListener
private OptionPanel optionPanel;

public PreferenceSupport() {
initPref();
}

void initPref() {
try {
for (final URL resource : Collections.list(ClassLoader.getSystemResources(getClass().getName().replace(".", "/") + ".properties"))) try (final InputStream is = resource.openStream()) {
properties.load(is);
Expand Down

0 comments on commit 35f4e5e

Please sign in to comment.