文件保存时一般不再弹出保存成功的消息

This commit is contained in:
MrZ626
2021-06-19 14:05:59 +08:00
parent 98715e4579
commit 4c95f6bfbc
10 changed files with 51 additions and 34 deletions

View File

@@ -611,8 +611,9 @@ local commands={}do
if #key>0 then
if SETTING[key]~=nil then
SETTING[key]=nil
FILE.save(SETTING,'conf/settings','q')
log{C.Y,("Succesfully erased key '%s'"):format(key)}
if FILE.save(SETTING,'conf/settings')then
log{C.Y,("Succesfully erased key '%s'"):format(key)}
end
else
log{C.R,"No key called "..key}
end