For some unknown reason, this combination of mc.toggleFullscreen() and the Swing File Chooser doesn't freeze the JVM on Windows when in Fullscreen
This commit is contained in:
@@ -67,8 +67,6 @@ public class GuiFileChooser extends GuiAdvancedButton implements GuiOutsideClick
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if(mc.isFullScreen()) mc.toggleFullscreen();
|
||||
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -92,6 +90,14 @@ public class GuiFileChooser extends GuiAdvancedButton implements GuiOutsideClick
|
||||
|
||||
fileChooser.setVisible(true);
|
||||
|
||||
mc.addScheduledTask(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if(mc.isFullScreen()) mc.toggleFullscreen();
|
||||
mc.setIngameNotInFocus();
|
||||
}
|
||||
});
|
||||
|
||||
int result;
|
||||
|
||||
if(save) {
|
||||
|
||||
Reference in New Issue
Block a user