Implement 'Show Hidden Files' feature

This commit is contained in:
Sun Jia Cheng
2024-03-09 11:06:14 +08:00
parent b56392cf3a
commit e39e38da11
7 changed files with 96 additions and 7 deletions
+12
View File
@@ -683,6 +683,18 @@ async function UIDesktop(options){
}
},
// -------------------------------------------
// Show/Hide hidden files
// -------------------------------------------
{
html: `${window.user_preferences.show_hidden_files ? 'Hide' : 'Show'} hidden files`,
onClick: function(){
window.mutate_user_preferences({
show_hidden_files : !window.user_preferences.show_hidden_files,
});
window.show_or_hide_files(document.querySelectorAll('.item-container'));
}
},
// -------------------------------------------
// -
// -------------------------------------------
'-',