Closed yupi2 closed 8 years ago
@wyozi I'm thinking of adding in the date media was added like in WMC. With that as the sorting method the line ID column could possibly be removed. That would solve the media order changes from this.
Yeah, that sounds like a good idea.
I'm going to leave this PR on hold for a bit. I'm testing to see if using the URL as the media-table key would be better than using number IDs.
These changes are obsolete now that I've got URLs instead of numeric IDs all fine. I'll open up another PR with all of that stuff.
If a line is deleted the server uses
table.remove(t, id)
to remove the line from the table. Ifid
is less than#t
though, this will cause every value fromid
to#t
to be moved down an index which nettable will interpret as modifications for linesid
through#t
.These changes replace the to-be-deleted line with the last line and then removes the last line. Now it's 1-2 modifications sent opposed to
#t - id + 1
modifications.Also when a line is deleted all lines are deselected because