fix for file transfer: sort row and remove empty dir

This commit is contained in:
rustdesk
2021-07-26 02:50:33 +08:00
parent 9a86a595ff
commit 1ee92c9f68
2 changed files with 8 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ class Grid: Behavior {
var getValue = function(x) {
var value = x.attributes["value"];
if (value == undefined) return x.text.toLowerCase();
return value.toInteger();
return value.toFloat();
}
var sort = function(r1, r2, asc) {
if (r1[1].text == "..") {