mirror of
https://github.com/KOHGYLW/kiftd-source.git
synced 2025-01-09 04:27:56 +08:00
update to v1.0.19 修正了文件管理界面中拖拽导入时无法显示进度的问题
This commit is contained in:
parent
5efb845c6d
commit
a95ec82503
1
TODO.txt
1
TODO.txt
@ -134,6 +134,7 @@ kiftd项目 计划表-2018-10-9 by 青阳龙野
|
||||
当用户打开新窗口或刷新页面时,文件列表直接进入最后一次打开的文件夹路径下(记忆期限至浏览器关闭)。
|
||||
【已完成】修正了当用户尝试打开一个不存在的文件夹时会导致出现程序出错的问题,当用户试图访问不存在的文件夹时,将直接跳转至根目录。
|
||||
【已完成】优化MySQL链接设置检查功能:当链接失败时,不再自动将“mysql.enable”一项改为“false”,避免用户因此出现误操作并丢失文件的可能性。
|
||||
【已完成】修正了文件管理界面在执行拖拽导入时无法正确显示进度的问题。
|
||||
|
||||
|
||||
|
||||
|
@ -337,17 +337,9 @@ public class FSViewer extends KiftdDynamicWindow {
|
||||
List<File> files = (List<File>) dropTarget;
|
||||
dtde.dropComplete(true);
|
||||
worker.execute(() -> {
|
||||
Runnable doImportThread = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// TODO 自动生成的方法存根
|
||||
disableAllButtons();
|
||||
doImport(files.toArray(new File[0]));
|
||||
enableAllButtons();
|
||||
}
|
||||
|
||||
};
|
||||
SwingUtilities.invokeLater(doImportThread);
|
||||
disableAllButtons();
|
||||
doImport(files.toArray(new File[0]));
|
||||
enableAllButtons();
|
||||
});
|
||||
} catch (Exception e) {
|
||||
// TODO 自动生成的 catch 块
|
||||
@ -490,10 +482,10 @@ public class FSViewer extends KiftdDynamicWindow {
|
||||
}
|
||||
// 打开进度提示会话框
|
||||
FSProgressDialog fsd = FSProgressDialog.getNewInstance();
|
||||
Thread importListenerDialog = new Thread(() -> {
|
||||
Thread fspt=new Thread(()->{
|
||||
fsd.show();
|
||||
});
|
||||
importListenerDialog.start();
|
||||
fspt.start();
|
||||
try {
|
||||
FileSystemManager.getInstance().importFrom(files, folderId, type);
|
||||
} catch (Exception e1) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Thu Jul 18 17:30:16 CST 2019
|
||||
#Fri Jul 19 08:34:19 CST 2019
|
||||
version=1.0.19-RELEASE
|
||||
groupId=kohgylw
|
||||
m2e.projectName=kiftd
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user