Skip to content

Commit 1716a51

Browse files
committed
Use filesystem name if it differs from the original name
1 parent 86c3c01 commit 1716a51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

octoprint_gcodethumbs/static/js/gcode-preview-viewmodel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ $(function() {
5858

5959
// TODO: include device and parent folder(s) to ensure uniqueness
6060
function extractKey(element) {
61+
const internal = element.querySelector('.internal');
62+
if (internal)
63+
return internal.querySelector('span').innerText;
6164
return element.querySelector('.title').innerText;
6265
}
6366

0 commit comments

Comments
 (0)