Files: QuickLook does not update when selected item changes

Created on 8 Jul 2020  路  4Comments  路  Source: files-community/Files

When the selected item changes, the QuickLook-preview does not update.

bug triage approved

Most helpful comment

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 4 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Currently it does not work this way. If you change selection and QuickLook is active, you want to preview it, if you change selection and QuickLook is not active, you simply changed selection. The problem is, we don't know if Quicklook is active or not, so we don't know if we have to update QuickLook or not.

from Discord

  1. One Solution would be to ask the QuickLook developer for a update-command, which only updates an existing window. But for this to work, we would need to send for every selection change an update-command to QuickLook.
  2. I'm sure there are some Windows apis, which can enumerate the windows and we can check if the QuickLook window is there. This is definitely not my filed of expertise 馃槂.

These are the 2 solutions, I can think of.

The QuickLook.App.PipeMessages.Switch message will not create a new window when no preview is visible: https://github.com/QL-Win/QuickLook/blob/master/QuickLook/ViewWindowManager.cs#L108-L111.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xpirad picture xpirad  路  3Comments

DeDaMrAzR picture DeDaMrAzR  路  3Comments

Cyberdroid1 picture Cyberdroid1  路  3Comments

szaimen picture szaimen  路  3Comments

eraychumak picture eraychumak  路  3Comments