Skip to content

Commit 7ca4d20

Browse files
authored
Fix: The application loops and freezes when opening files on the network (UNC paths)
1 parent 99bd2b2 commit 7ca4d20

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1212
- Error handling for corrupted JSON/ZSTD files in cache and remove them
1313
- Header bar buttons don't register start/end of chapter if scrolled with scrollbar
1414
- Asynchronous progress check in the context menu (Mark as read/unread)
15+
- The application loops and freezes when opening files on the network (UNC paths)
1516

1617
## [v1.6.2](https://github.com/ollm/OpenComic/releases/tag/v1.6.2) (08-09-2025)
1718

scripts/dom/labels.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,11 @@ function has(path, parents = false)
658658
if(comicLabels[path])
659659
return comicLabels[path];
660660

661+
const len = path.split(p.sep).filter(Boolean).length;
662+
661663
if(parents)
662664
{
663-
while(path)
665+
for(let i = 0; i < len; i++)
664666
{
665667
path = p.dirname(path);
666668

0 commit comments

Comments
 (0)