Skip to content

Commit 105e3d2

Browse files
committed
v3.0.0 release
1 parent 030e799 commit 105e3d2

File tree

11 files changed

+243
-247
lines changed

11 files changed

+243
-247
lines changed

Movefile Code/LT_Dic.py

Lines changed: 63 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
version = 'v2.0.0'
2-
update_time = '2024/1/29'
1+
version = 'v3.0.0'
2+
update_time = '2024/1/30'
33
r_label_text_dic = {
44

55
# Menu options
@@ -9,18 +9,18 @@
99
'update_menu': ['检查更新', 'Check for Update'],
1010
'exit_menu': ['退出', 'Exit'],
1111
'option_menu': ['选项', 'Option'],
12-
'auto_update_menu': ['软件启动检查更新', 'Check for Update on Starting the app'],
12+
'auto_update_menu': ['软件启动时自动检查更新', 'Check for Update on Starting the app'],
1313
'autorun_menu': ['开机自启', 'Start Movefile with Windows'],
1414
'auto_quit_menu': ['自动化运行完毕后自动退出', 'Automatically quit after automation upon startup'],
1515
'desktop_shortcut': ['添加快捷方式到桌面', 'Add a shortcut to Desktop'],
1616
'language_menu': ['语言', 'Language'],
1717
'help_menu': ['帮助', 'Help'],
1818
'about_menu': ['关于本软件', 'About'],
1919
'precautions_menu': ['使用前注意事项', 'Precautions before use'],
20-
'cf_keep_menu': ['保留文件/文件格式选择', 'Keep file/format setting'],
21-
'cf_expire_menu': ['过期时间设定', 'Expire time setting'],
20+
'cf_keep_menu': ['强制保留文件/文件格式选择', 'Reserved item/format Selection'],
21+
'cf_expire_menu': ['过期时间设定', 'Retain Item for... Setting'],
2222
'sf_removable_menu': ['可移动磁盘同步', 'Removable Volume mode'],
23-
'sf_lock_menu': ['锁定文件/文件夹选择', 'Lock folder/sile setting'],
23+
'sf_lock_menu': ['禁止修改文件夹/覆盖文件夹选择', 'Lock folder/sile Setting'],
2424
'log_menu': ['使用日志', 'Movefile Log'],
2525
'menu_hide': ['隐藏至后台', 'Hide to Backend'],
2626

@@ -35,7 +35,7 @@
3535
'option_is_cleanfile': ['清理桌面', 'Clean Desktop'],
3636
'option_is_syncfile': ['同步文件', 'Syncfile'],
3737

38-
# Cleanfile labels
38+
# Clean Desktop labels
3939
'cf_label_old_path': ['源文件夹:', 'Source path:'],
4040
'cf_browse_old_path_button': ['浏览', 'Browse'],
4141
'cf_browse_new_path_button': ['浏览', 'Browse'],
@@ -67,7 +67,7 @@
6767
'sf_browse_path_2_button': ['浏览', 'Browse'],
6868
'sf_label_lock_folder': ['禁止修改文件夹:', 'Locked Folders:'],
6969
'sf_browse_lockfolder_button': ['添加文件夹', 'Add Folder'],
70-
'sf_label_lock_file': ['禁止覆盖、删除文件:', 'Locked Files:'],
70+
'sf_label_lock_file': ['禁止覆盖文件:', 'Locked Files:'],
7171
'sf_browse_lockfile_button': ['添加文件', 'Add Files'],
7272
'sf_label_autorun': ['系统选项:', 'Boot option:'],
7373
'sf_option_autorun': [['磁盘接入自动同步', '开机自动同步'],
@@ -84,13 +84,14 @@
8484
'default_preview': ['点击上方 “预览” 来检查设置,并查看该设置下哪些项目将被移动', 'Click the "Action Preview" button above\nto check the settings above and view which items will be moved'],
8585
'preview_cost': ['扫描耗时:', 'Scan Cost: '],
8686
'preview_num_found': ['找到需要移动的项目: ', "Need-to-Move Objects' number: "],
87+
'preview_removal': ['直接移除', 'Remove Directly'],
8788
'save_button': ['保存当前配置', 'Save the config'],
8889
'continue_button': ['运行', 'Run'],
8990

9091
# Readfile options
9192
'read_name_label': [' 选择存档:', ' Pick a config:'],
92-
'read_mode_entry': [['清理桌面(Clean Desktop)', '同步文件(Syncfile)'], ['Cleanfile', 'Syncfile']],
93-
'read_mode_entry_s': [['清理桌面(Clean Desktop)', 'Cleanfile'], ['同步文件(Syncfile)', 'Syncfile']],
93+
'read_mode_entry': [['清理桌面(Clean Desktop)', '同步文件(Syncfile)'], ['Clean Desktop', 'Syncfile']],
94+
'read_mode_entry_s': [['清理桌面(Clean Desktop)', 'Clean Desktop'], ['同步文件(Syncfile)', 'Syncfile']],
9495
'del_save_button': ['删除存档', 'Delete'],
9596
'sure_name_bottom': ['读取存档', 'Read'],
9697
'sf_disk_not_found': ['请插入该存档指定的可移动磁盘来将其读取', 'Please insert the specified removable disk for this archive to read it'],
@@ -115,6 +116,7 @@
115116
'suggest_save': ['提示:使用此功能需要保存, \n且建议设定开机自启。\n\n选择"确定"来进行推荐设置(可选)', "Tip: You need to save the current config when using,\nand setting Movefile to start upon startup is suggested.\n\nClick 'OK' to follow the suggestions above (Optional)"],
116117
'succ_save': [['信息提示', '信息保存成功!'], ['Information prompt', 'Data saved Successfully']],
117118
'change_language': ['提示:需要重启本软件来让一些标签的语言改变', '''Tip:You need to restart the app\nto make the language of some labels changed'''],
119+
'dest_path_blank_notice': ['提示:将 "移动到" 框留空, \n指被清理的项目将被直接删除(不可恢复)\n确定这样设置?', "Notice:Leaving the 'Move to' column unset \nmeans that the cleaned items would be deleted directly\n-- That is not restorable--\nAre you sure about this?"],
118120
'path_not_exist_notice': ['提示:下面的路径不存在:\n', 'Notice:The following path does not exist:\n'],
119121
'create_path_notice': ['\n选择 "是" 来创建该路径', '\nChoose "Yes" to create this path'],
120122
'blank': [138, 117],
@@ -191,11 +193,12 @@
191193
如果对本软件功能有任何疑惑,可以查看菜单栏中的 "帮助" 选项
192194
使用本软件进行的所有操作会在用户AppData/Roaming/Movefile文件夹下的Movefile.log记录
193195
196+
自动联网更新功能在3.0.0版本发布, 可以在菜单栏中选择"软件启动时自动检查更新"来确保当前软件为最新版。
197+
194198
作者:Robert He
195-
如果对本软件有任何改进意见,请联系作者
196-
如果意见被采纳,新版本中会进行更改
199+
如果对本软件有任何改进意见,请联系作者,新版本中可以进行更改
197200
198-
如有功能异常请先访问 Github 查看有无新版本,或者阅读 Github 中的其他注意事项和运行机制说明
201+
如有功能异常, 请访问我们的网站, 或尽快联系作者
199202
地址:
200203
201204
本窗口将不再自动弹出""", """About
@@ -208,31 +211,47 @@
208211
If you have any doubts about the function of this app, you can check the "Help" option in the menu bar
209212
All operations performed by this app will be recorded in Roaming/Movefile/Movefile.log
210213
214+
The online update check function has been added since version 3.0.0, and you can set the "Check for Update on Starting the app" option to True in menu to make sure the app is always the latest version.
215+
211216
Author: Robert He
212-
If you have any suggestions for improvement of this app, please contact the author.
213-
If the comments are adopted, changes will be made in the new version.
217+
If you have any suggestions for improving this app, please contact the author. Changes will be made in the new version.
214218
215-
If there is any function abnormality, please visit Github first to check whether there is a new version, or read other precautions and operating mechanism instructions in Github.
219+
If there's any abnormality, please visit our website, or contact the author as well.
216220
Address:
217221
218222
This notice won't be shown automatically anymore"""]
219223

220224
help_before_use_text = ["""使用前特别注意事项
221225
1.本软件必须在64位Windows10及以上操作系统下运行
222-
2.本exe文件的名称请不要改变:"Movefile.exe",否则会影响开机自启功能
223-
3.使用本软件前请打开Windows设置中的 系统/通知和操作/通知/获取来自应用和其他发送者的通知 选项,否则会影响操作结果通知功能
224-
5.如果经过版本更新后软件无法运行,可以尝试删除位于Roaming文件夹中的配置文件
225-
6.若有其他原因导致软件功能无法正常运行,且无法按上面的解释修复,可以访问 Github 官方网站:
226-
或直接联系作者(QQ:2567466856),我会尽快尝试帮你修复""", """Precautions before use
226+
2.本exe文件的名称请不要改变:"Movefile.exe",
227+
否则会影响开机自启功能
228+
3.使用本软件前请打开Windows设置中的
229+
系统/通知和操作/通知/获取来自应用和其他发送者的通知 选项,
230+
否则会影响操作结果通知功能
231+
4.如果经过版本更新后软件无法运行,
232+
可以尝试删除位于Roaming文件夹中的配置文件
233+
5.若有其他原因导致软件功能无法正常运行,
234+
且无法按上面的解释修复,
235+
可以访问 Github 官方网站:
236+
或直接联系作者(QQ:2567466856),
237+
我会尽快尝试帮你修复""", """Precautions before use
227238
1.This app must be run under a 64-bit Windows 10 or above operating system.
228-
2.Please do not change the name of this exe file:"Movefile.exe", otherwise the startup function will be affected.
229-
3.Please check the option in Windows Setting: System/Notifications/Notifications/Get notifications from apps and other senders, otherwise the operation result notifying function would be affected
230-
5.If the app can't run after updating the new version, you can try to delete the profile located in the Roaming folder
231-
6.If the app fails to run normally due to other reasons, and also can't be fixed as explained above, you can visit our Github website:
232-
Or contact the author directly (QQ: 2567466856), I'll try to repair it for you as soon as possible"""]
239+
2.Please do not change the name of this exe file:"Movefile.exe",
240+
otherwise the startup function will be affected.
241+
3.Please check the option in Windows Setting:
242+
System/Notifications/Notifications/Get notifications from apps and other senders,
243+
otherwise the operation result notifying function would be affected
244+
4.If the app can't run after updating the new version,
245+
you can try to delete the profile located in the Roaming folder
246+
5.If the app fails to run normally due to other reasons,
247+
and also can't be fixed as explained above,
248+
you can visit our Github website:
249+
Or contact the author directly (QQ: 2567466856),
250+
I'll try to repair it for you as soon as possible"""]
233251

234252
cf_help_text = ["""Clean Desktop:清理文件工具
235253
这是一个用来整理文件夹(尤其是桌面)的程序,
254+
虽然名为""
236255
237256
包含设定是否移动文件夹与快捷方式,
238257
选取强制保留文件,按文件类型强制保留,
@@ -247,37 +266,37 @@
247266
Start up and automatically run archiving and other functions
248267
"""]
249268

250-
cf_help_keep_text = ["""保留项目/文件格式选择功能详解
251-
保留项目选择
269+
cf_help_keep_text = ["""强制保留文件/文件格式选择
270+
强制保留项目选择
252271
选中的项目不会被转移
253272
254-
保留文件格式选择
273+
按文件格式保留选择
255274
某种格式类型的文件都不会被转移
256-
比如选中'.exe',即表示原文件夹中所有exe应用程序不会被转移""", """Preserve item
257-
Keep item selection:
258-
The selected items will not be transferred
275+
比如选中'.exe',即表示原文件夹中所有exe应用程序不会被转移""", """Reserve Selection:
276+
Reserved item selection:
277+
The selected items will not be moved
259278
260-
Keep file format selection:
261-
Files of a certain format type will not be transferred
279+
Reserved format selection:
280+
Files of a certain format type will not be moved
262281
For example, selecting '.exe' means that
263-
all executable files in the original folder will not be transferred"""]
282+
all executable files in the original folder will not be moved"""]
264283

265284
cf_help_timeset_text = ["""过期时间功能详解
266285
本软件可以获取文件的最后修改、访问时间
267286
可以保留一定时间内修改/访问过的文件
268-
例如若将过期时间设为"48",判定方式设为"以最后修改时间为依据"
269-
则运行日期前两天内修改过的文件不会被删除
270-
如果不想用此方法,则过期时间设为"0"即可""", '''Expiration time setting
287+
例如若将保留时间设为"48",判定方式设为"最后修改时间"
288+
则运行日期前两天内修改过的文件不会被移动
289+
如果不想用此方法,则过期时间设为"0"即可""", '''Retain item for... Setting
271290
The app can obtain the latest modification and access time of the file
272291
273292
You can reserve files that have been modified/accessed for a certain period of time.
274293
275294
For example, if the expiration time is set to "48", and
276-
the judgment method is set to "Use Items' latest edit time",
277-
the files modified within two days before the operation date will not be deleted
295+
the judgment method is set to "Last Modified Moment",
296+
the files modified within two days before the operation date will not be moved
278297
279298
If you do not want to use this method,
280-
set the expiration time to "0" ''']
299+
just set the expiration time to "0" ''']
281300

282301
sf_help_text = ['''Syncfile:文件同步工具
283302
这是一个用来同步文件两个路径下文件的程序,
@@ -324,12 +343,12 @@
324343
a pop-up prompt will ask you whether to synchronize or not.
325344
''']
326345

327-
sf_lock_help_text = ['''锁定文件夹/文件功能
328-
锁定文件夹
346+
sf_lock_help_text = ['''禁止修改文件夹/覆盖文件功能
347+
禁止修改文件夹
329348
当你添加了一个文件夹,这个文件夹将会被显示在待选列表中。
330349
在待选列表内勾选这个文件夹,这个文件夹内的内容将不会被修改或删除。
331350
332-
锁定文件
351+
禁止覆盖文件
333352
添加原理与锁定文件夹相同,
334353
如果勾选一个文件,那么这个文件不会被修改。
335354
''', '''Lock folder/file function
602 Bytes
Binary file not shown.
-23 Bytes
Binary file not shown.
37 Bytes
Binary file not shown.
881 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Movefile Code/cleanfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import configparser
44
import os
55
import time
6-
from pdb import run
76
from shutil import move as shutil_move
87
from threading import Thread
98

@@ -73,7 +72,7 @@ def get_cf_tasks(baroot: MFProgressBar):
7372
if ('.' + item_data.name.split('.')[-1] in pass__format and not item_data.is_dir()
7473
or item_data.name in pass__file):
7574
continue
76-
if item_data.name == 'Movefile.exe' or os.path.commonpath([item_data.path, dest__path]) == dest__path:
75+
if item_data.name == 'Movefile.exe' or dest__path and os.path.commonpath([item_data.path, dest__path]) == dest__path:
7776
continue
7877
if check__mode == 1:
7978
# 最后一次修改的时间 (Option 1)
@@ -232,4 +231,4 @@ def cf_autorun_operation(master):
232231
save_name, 'move_folder'),
233232
is__move__lnk=cf_file.getboolean(save_name, 'move_lnk'))
234233
mf_log(
235-
f'\nAutomatically ran Cleanfile operation as config "{save_name}"')
234+
f'\nAutomatically ran Clean Desktop operation as config "{save_name}"')

Movefile Code/mf_mods.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from mf_const import (CF_CONFIG_PATH, CF_DATA_PATH, DESKTOP_PATH,
1616
MF_CONFIG_PATH, MF_DATA_PATH, MF_ICON_PATH, MF_LOG_PATH,
1717
ROAMING_PATH, SF_CONFIG_PATH, SF_DATA_PATH, STARTUP_PATH)
18+
from mf_global_var import gvar
1819
from mttkinter.mtTkinter import Tk
1920
from psutil import disk_partitions
2021
from pythoncom import CoInitialize
@@ -24,8 +25,6 @@
2425
from win32gui import FindWindow, ShowWindow
2526
from winshell import CreateShortcut
2627

27-
from mf_global_var import gvar
28-
2928
mf_toaster = ToastNotifier()
3029

3130

@@ -136,7 +135,7 @@ def init_config(self):
136135
self.mf_data.set('General', 'language', 'English')
137136

138137
if not self.mf_data.has_option('General', 'auto_update'):
139-
self.mf_data.set('General', 'auto_update', 'False')
138+
self.mf_data.set('General', 'auto_update', 'True')
140139
if not self.mf_data.has_option('General', 'autorun'):
141140
self.mf_data.set('General', 'autorun', 'False')
142141
if not self.mf_data.has_option('General', 'quit_after_autorun'):
@@ -260,6 +259,7 @@ def set_auto_quit(state=True):
260259
ca_cf = configparser.ConfigParser()
261260
ca_cf.read(MF_CONFIG_PATH, encoding='utf-8')
262261
ca_cf.set('General', 'quit_after_autorun', str(state))
262+
ca_cf.write(open(MF_CONFIG_PATH, "w+", encoding='utf-8'))
263263
mf_log(f"Set quit-after-autorun to {state}")
264264

265265

0 commit comments

Comments
 (0)