Skip to content

Commit

Permalink
add code for settingsUri
Browse files Browse the repository at this point in the history
Signed-off-by: Shi Chen <[email protected]>
  • Loading branch information
CsCherrYY committed Apr 23, 2021
1 parent 008b542 commit c88f8f5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,12 @@ public void fileChanged(String uriString, CHANGE_TYPE changeType) {
List<URI> uris = getURIs(settingsUrl);
boolean changed = false;
for (URI settingsURI : uris) {
if (settingsURI.equals(uri)) {
if (Platform.OS_WIN32.equals(Platform.getOS()) && URIUtil.isFileURI(settingsURI) && URIUtil.isFileURI(uri)) {
if (URIUtil.toFile(settingsURI).toPath().equals(URIUtil.toFile(uri).toPath())) {
changed = true;
break;
}
} else if (settingsURI.equals(uri)) {
changed = true;
break;
}
Expand Down

0 comments on commit c88f8f5

Please sign in to comment.