mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
fix: windows sftp path (#486)
This commit is contained in:
@@ -250,6 +250,13 @@ class FileSystemViewNav(
|
||||
textField.text = formatDisplayPath(file)
|
||||
textField.putClientProperty(PATH, file)
|
||||
|
||||
val fileSystem = fileSystemProvider.getFileSystem()
|
||||
if (SystemInfo.isWindows && fileSystem is LocalFileSystem) {
|
||||
if (!StringUtils.equals(fileSystem.rootURI, file.fileSystem.rootURI)) {
|
||||
fileSystemProvider.setFileSystem(file.fileSystem)
|
||||
}
|
||||
}
|
||||
|
||||
for (listener in listenerList.getListeners(ActionListener::class.java)) {
|
||||
listener.actionPerformed(ActionEvent(this, ActionEvent.ACTION_PERFORMED, StringUtils.EMPTY))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user