Skip to content

Commit f73c7d6

Browse files
committed
On Mac: Force update panel after extension changed
On IL2CPP builds finder does not properly refresh itself after extension changed.
1 parent cb79e1a commit f73c7d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Plugins/MacOS/StandaloneFileBrowser/Plugin.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ - (void)selectFormatOpen:(id)sender {
355355
else {
356356
[((NSOpenPanel*)_panel) setAllowedFileTypes:[_extensions objectAtIndex:selectedItemIndex]];
357357
}
358+
[((NSSavePanel*)_panel) update];
358359
}
359360

360361
- (void)selectFormatSave:(id)sender {
@@ -376,6 +377,7 @@ - (void)selectFormatSave:(id)sender {
376377
}
377378

378379
[((NSSavePanel*)_panel) setNameFieldStringValue:nameFieldStringWithExt];
380+
[((NSSavePanel*)_panel) update];
379381
}
380382

381383
@end

0 commit comments

Comments
 (0)