NoMediaFileTypes in QuickView not limited to its extensions

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

NoMediaFileTypes in QuickView not limited to its extensions

Post by *DrShark »

Checked in TC 9.00a 32-bit on Windows Vista and 7 32-bit.

To reproduce:
1. Set following in [Lister] section of wincmd.ini:

Code: Select all

NoMediaFileTypes=*.txt
2. Restart TC.
4. Go to some folder with *.txt files and files recognized by TC as media or viewed with Lister plugins.
5. Don't use Lister! Use Ctrl+Q on your txt file and, without exiting QuickView, on some media file -> media files will be shown in text mode.

Notes:
1. Using Lister with plugin on media file before QuickView on *.txt seems to make QuickView work properly (text mode used for *.txt files, media mode/plugins used for media files).
2. Bug doesn't seem to happen with another similar Lister's setting NoPluginFileTypes.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I don't understand what you are trying to achieve, sorry. Please explain what is your goal.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

NoMediaFileTypes should make Lister/QuickView not to use its multimedia ability (showing pictures, playing music/videos) and Lister plugins before user will press "4" key (tells LS/QV to use Multimedia mode) for extensions listed for this parameter.

So if we write NoMediaFileTypes=*.txt, Lister and QuickView should block Lister plugins for *.txt at start, but ONLY for txt.

Let's pretend we have that ulister plugin to show both *.txt and *.doc files, and we go to folder with txt and doc files. We press Ctrl+Q on txt file, ulister is blocked (NoMediaFileTypes=*.txt tells QuikView to do that), than we use Up or Down key in file panel to point cursor on doc file. DOC extension is not listed in NoMediaFileTypes, so expected behaviour for QuickView is to use ulister plugin for this *.doc, but it starts in text mode instead blocking ulister until user will use "4" key in QV panel.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the clarification, I understand now. I will check it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.10 beta, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

I confirm the fix for TC 9.10.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply