fix: #I7WXRO 修复关联文件打开失败的问题

This commit is contained in:
songdragon 2023-08-29 18:53:16 +08:00
parent 422bb59161
commit 317e486f85
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ public class OpenFile implements EventHandler<ActionEvent> {
*
* @param file 文件对象
*/
protected void openFile(File file) {
public void openFile(File file) {
ThreadPoolManager.getThreadPool().submit(createOpenFileTask(file));
}

View File

@ -49,7 +49,7 @@ public class Controller implements ControllerInterface {
public void openAssociatedFile(String filePath) {
File file = new File(filePath);
if (file.exists() && file.isFile()) {
new OpenFile().createOpenFileTask(file);
new OpenFile().openFile(file);
}
}
}