Merge branch 'master' of https://gitee.com/jcnc-org/JNotepad into develop

This commit is contained in:
gewuyou 2023-08-29 20:13:43 +08:00
commit c1fe25e2bb
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);
}
}
}