mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
VFS refresh after clearing RO attribute ought to be synchronous.
This commit is contained in:
@@ -96,7 +96,7 @@ class FileInfo {
|
||||
myEditFileProvider.editFiles(new VirtualFile[]{file});
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
public void run() {
|
||||
file.refresh(true, false);
|
||||
file.refresh(false, false);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -105,6 +105,7 @@ class FileInfo {
|
||||
public void run() {
|
||||
try {
|
||||
ReadOnlyAttributeUtil.setReadOnlyAttribute(file, false);
|
||||
file.refresh(false, false);
|
||||
}
|
||||
catch (IOException e) {
|
||||
//ignore
|
||||
|
||||
Reference in New Issue
Block a user