Merge branch 'master' of https://gitee.com/jcnc-org/JNotepad into develop
This commit is contained in:
commit
c1fe25e2bb
@ -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));
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user