This commit is contained in:
Igor Timofeev 2016-04-25 13:30:13 +03:00
parent 5f3d4b0264
commit ef33dd0bf3

View File

@ -561,28 +561,28 @@ while true do
{lang.contextMenuRemoveWallpaper, not wallpaper} {lang.contextMenuRemoveWallpaper, not wallpaper}
) )
if action == "Показывать скрытые файлы" then if action == lang.showHiddenFiles then
showHiddenFiles = true showHiddenFiles = true
drawAll() drawAll()
elseif action == "Скрывать скрытые файлы" then elseif action == lang.hideHiddenFiles then
showHiddenFiles = false showHiddenFiles = false
drawAll() drawAll()
elseif action == "Показывать формат файлов" then elseif action == lang.showFileFormat then
showFileFormat = true showFileFormat = true
drawAll() drawAll()
elseif action == "Скрывать формат файлов" then elseif action == lang.hideFileFormat then
showFileFormat = false showFileFormat = false
drawAll() drawAll()
elseif action == "Сортировать по имени" then elseif action == lang.sortByName then
sortingMethod = "name" sortingMethod = "name"
drawAll() drawAll()
elseif action == "Сортировать по дате" then elseif action == lang.sortByDate then
sortingMethod = "date" sortingMethod = "date"
drawAll() drawAll()
elseif action == "Сортировать по типу" then elseif action == lang.sortByType then
sortingMethod = "type" sortingMethod = "type"
drawAll() drawAll()
elseif action == "Удалить обои" then elseif action == lang.contextMenuRemoveWallpaper then
wallpaper = nil wallpaper = nil
fs.remove(pathToWallpaper) fs.remove(pathToWallpaper)
drawAll(true) drawAll(true)