File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/src/processing/app/platform Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -140,10 +140,18 @@ protected void checkAssociations() {
140140 // Check the key that should be set by a previous run of Processing
141141 String knownCommand =
142142 WindowsRegistry .getStringValue (REGISTRY_ROOT_KEY .CURRENT_USER ,
143- "Software\\ Classes\\ " + REG_DOC + "\\ shell\\ open\\ command" , "" );
143+ "Software\\ Classes\\ " + REG_DOC + "\\ shell\\ open\\ command" , "" );
144144 // If the association hasn't been set, or it's not correct, set it.
145145 if (knownCommand == null || !knownCommand .equals (REG_OPEN_COMMAND )) {
146146 setAssociations ();
147+
148+ } else { // check each extension
149+ for (String extension : APP_EXTENSIONS ) {
150+ if (!WindowsRegistry .valueExists (REGISTRY_ROOT_KEY .CURRENT_USER ,
151+ "Software\\ Classes" , extension )) {
152+ setAssociations ();
153+ }
154+ }
147155 }
148156 }
149157 } catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments