Better implementation of the Preview limit
Open, NormalPublic

Description

Currently Ark "blocks" the UI while extracting an entry, even though the ExtractJobs run in another thread.
To prevent Ark from freezing when a huge file is being extracted, a "preview limit" setting was introduced.

This setting however has one big drawback: it does not notify the user.
If the user clicks an entry whose size is bigger than the preview limit, nothing happens. The user cannot know that the file was not opened due to its size.

A better solution would be the following:

  • Do not block the UI at all, while extracting (T7003)
  • Still, we might want to warn the user with a KMessageBox, if he's going to preview/open a huge file.
  • This way we can even ditch the preview limit from the settings dialog. We could just set the limit (e.g. 200MB) internally.
elvisangelaccio updated the task description. (Show Details)
elvisangelaccio raised the priority of this task from to Normal.
elvisangelaccio added a project: Ark.
elvisangelaccio updated the task description. (Show Details)
elvisangelaccio updated the task description. (Show Details)
elvisangelaccio added a subscriber: elvisangelaccio.

Btw, in the meantime we could at least show a KMessageWidget from Part::isPreviewable, if we realize that a preview was suppressed due to the size.