Different Icons in Drive Buttons and Drive Combobox

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the steps. It seems to happen only when you first connect the two drives and THEN start Total Commander. I always tried the opposite, so I never saw the problem. I could reproduce it now with your testing order.

Do you get this problem also when connecting the drives AFTER starting Total Commander?
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9968
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

ghisler(Author) wrote:Do you get this problem also when connecting the drives AFTER starting Total Commander?
On my systems it doesn't matter whether I start TC before connecting the drive or after doing so. If CheckUsbHdd=1 (default) TC shows the drive as removable in the drive bar but as fixed in the drive list.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

On my systems it doesn't matter whether I start TC before connecting the drive or after doing so. If CheckUsbHdd=1 (default) TC shows the drive as removable in the drive bar but as fixed in the drive list.
Same here.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Dalai wrote:On my systems it doesn't matter whether I start TC before connecting the drive or after doing so.
Same for me.
TC plugins: PCREsearch and RegXtract
p.eter
Junior Member
Junior Member
Posts: 35
Joined: 2013-04-18, 08:43 UTC

Post by *p.eter »

the same for me, no matter in which order
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I cannot reproduce the problem when connecting them afterwards.

Anyway, please check whether my fix in beta 8 works for you or not.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

In TC9B8 it now works as expected with CheckUsbHdd=1 and OldDriveIcons>0 - my external USB harddisk is now show as removable in both drive buttonbar and drive combobox.

But with OldDriveIcons=0 the external USB harddisk is always shown as a fixed drive in both places despite the setting of CheckUsbHdd=1.

If it is not possible to make CheckUsbHdd=1 apply to system drive icons (OldDriveIcons=0) I suggest to change the Help from:
CheckUsbHdd=1 Check whether a harddisk is connected via USB (uses removable disk icon)[/b]
to:
CheckUsbHdd=1 Check whether a harddisk is connected via USB (uses removable disk icon) - Works only with OldDriveIcons > 0.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
p.eter
Junior Member
Junior Member
Posts: 35
Joined: 2013-04-18, 08:43 UTC

Post by *p.eter »

For TC9 b8, I can confirm the statements of petermad :D
If OlddriveIcons=0, CheckUsbHdd has no influence on it, which Icon is displayed.

And furthermore, if you use your own DriveLib with CheckUsbHdd=0, there is no difference between the Icon for Systemdrive and fixed Drives (whether in Buttonbar or Combo-Box), because there's no separate icon provided in the Drives.dll. Is it possible to add a seperate Icon for fixed and Sytem Drives?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If OlddriveIcons=0, CheckUsbHdd has no influence on it, which Icon is displayed.
Indeed TC then asks Windows for the icon, and it returns normal harddisk icons for removable harddisks. :(
And furthermore, if you use your own DriveLib with CheckUsbHdd=0, there is no difference between the Icon for Systemdrive and fixed Drives (whether in Buttonbar or Combo-Box), because there's no separate icon provided in the Drives.dll. Is it possible to add a seperate Icon for fixed and Sytem Drives?
It could be done, but currently it's not planned because I don't have any such icons internally either.
Author of Total Commander
https://www.ghisler.com
Post Reply