mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix some exceptions
This commit is contained in:
parent
feb8cf9165
commit
ccb8888df2
2 changed files with 12 additions and 6 deletions
|
@ -502,7 +502,8 @@ public final class BrowserFileListComp extends SimpleComp {
|
||||||
|
|
||||||
updateHandler.run();
|
updateHandler.run();
|
||||||
fileList.getShown().addListener((observable, oldValue, newValue) -> {
|
fileList.getShown().addListener((observable, oldValue, newValue) -> {
|
||||||
updateHandler.run();
|
// Delay to prevent internal tableview exceptions when sorting
|
||||||
|
Platform.runLater(updateHandler);
|
||||||
});
|
});
|
||||||
fileList.getFileSystemModel().getCurrentPath().addListener((observable, oldValue, newValue) -> {
|
fileList.getFileSystemModel().getCurrentPath().addListener((observable, oldValue, newValue) -> {
|
||||||
if (oldValue == null) {
|
if (oldValue == null) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package io.xpipe.app.util;
|
package io.xpipe.app.util;
|
||||||
|
|
||||||
import io.xpipe.app.ext.ProcessControlProvider;
|
import io.xpipe.app.ext.ProcessControlProvider;
|
||||||
|
import io.xpipe.core.process.ProcessOutputException;
|
||||||
import io.xpipe.core.process.ShellControl;
|
import io.xpipe.core.process.ShellControl;
|
||||||
import io.xpipe.core.process.ShellDialects;
|
import io.xpipe.core.process.ShellDialects;
|
||||||
|
|
||||||
|
@ -38,11 +39,15 @@ public class LocalShell {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localPowershell == null) {
|
if (localPowershell == null) {
|
||||||
localPowershell = ProcessControlProvider.get()
|
try {
|
||||||
.createLocalProcessControl(false)
|
localPowershell = ProcessControlProvider.get()
|
||||||
.subShell(ShellDialects.POWERSHELL)
|
.createLocalProcessControl(false)
|
||||||
.withoutLicenseCheck()
|
.subShell(ShellDialects.POWERSHELL)
|
||||||
.start();
|
.withoutLicenseCheck()
|
||||||
|
.start();
|
||||||
|
} catch (ProcessOutputException ex) {
|
||||||
|
throw ProcessOutputException.withPrefix("Failed to start local powershell process", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return localPowershell.start();
|
return localPowershell.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue