File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,6 @@ public void windowActivated(WindowEvent e) {
242
242
watcher = null ;
243
243
}
244
244
base .handleActivated (Editor .this );
245
- getTabs ().forEach (tab -> tab .reload ());
246
245
}
247
246
248
247
// added for 1.0.5
Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ public void processEvents(Editor editor) {
151
151
SketchFile sketch = editor .getSketch ().addFile (filename );
152
152
editor .addTab (sketch , null );
153
153
}
154
- } catch (IOException e ) {}
154
+ } catch (Exception e ) {
155
+ return ;
156
+ }
155
157
} else if (kind == ENTRY_DELETE ) {
156
158
try {
157
159
Thread .sleep (100 );
@@ -160,9 +162,14 @@ public void processEvents(Editor editor) {
160
162
} catch (Exception e1 ) {
161
163
// Totally fine, if the sleep gets interrupted it means that
162
164
// the action was executed in the UI, not externally
165
+ return ;
163
166
}
164
167
}
165
-
168
+ editor .getTabs ().forEach (tab -> {
169
+ if (!tab .isModified ()) {
170
+ tab .reload ();
171
+ }
172
+ });
166
173
// if directory is created, and watching recursively, then
167
174
// register it and its sub-directories
168
175
if (recursive && (kind == ENTRY_CREATE )) {
You can’t perform that action at this time.
0 commit comments