update to v1.2.0 优化了图形界面下修改存储区路径时的提示信息

This commit is contained in:
kohgylw 2024-01-08 23:08:34 +08:00
parent f75518d77c
commit 962f6e84b2
4 changed files with 4 additions and 3 deletions

View File

@ -126,8 +126,9 @@ public class FileSystemPathViewer extends KiftdDynamicWindow {
});
changeBtn.addActionListener((e) -> {
disableAllButtons();
if (JOptionPane.showConfirmDialog(window, "确认要修改该存储路径么?警告:修改为新路径后,该存储区内原先存放的数据将会丢失。", "修改路径",
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
if (JOptionPane.showConfirmDialog(window,
"确认要修改该存储区路径么?警告:如需保留该存储区内的全部数据,应先将该存储区原路径指定的文件夹移动到新位置,再将移动后的文件夹设置为该存储区的新路径。否则,该存储区内的数据将全部丢失。",
"修改路径", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
short index = pathsTable.getSelectFileSystemIndex();
if (index == 0) {
JFileChooser mainFileSystemPathChooer = new JFileChooser();

View File

@ -1,5 +1,5 @@
#Generated by Maven Integration for Eclipse
#Sat Jan 06 18:20:23 CST 2024
#Mon Jan 08 23:07:06 CST 2024
m2e.projectLocation=/Users/kohgylw/Programs/java_workspace/kiftd
m2e.projectName=kiftd
groupId=kohgylw