!50 hotfix: #I7WXRO 修复关联文件打开失败问题
Merge pull request !50 from songdragon/hotfix-I7WXRO
This commit is contained in:
commit
8eb8b7bf27
@ -74,7 +74,7 @@ public class OpenFile implements EventHandler<ActionEvent> {
|
|||||||
*
|
*
|
||||||
* @param file 文件对象
|
* @param file 文件对象
|
||||||
*/
|
*/
|
||||||
protected void openFile(File file) {
|
public void openFile(File file) {
|
||||||
ThreadPoolManager.getThreadPool().submit(createOpenFileTask(file));
|
ThreadPoolManager.getThreadPool().submit(createOpenFileTask(file));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public class Controller implements ControllerInterface {
|
|||||||
public void openAssociatedFile(String filePath) {
|
public void openAssociatedFile(String filePath) {
|
||||||
File file = new File(filePath);
|
File file = new File(filePath);
|
||||||
if (file.exists() && file.isFile()) {
|
if (file.exists() && file.isFile()) {
|
||||||
new OpenFile().createOpenFileTask(file);
|
new OpenFile().openFile(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user