Page 1 of 1

875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 14:32
by Dreamer
To reproduce create a toolbar button for color schemes - item "Show color schemes popup menu", click the button, select "Remove color scheme...", select any item and confirm deletion.

Result is, that color scheme is not removed, it's still in the list, also after FC restart.

Color scheme file is not "read-only" and can be deleted in its original location easily.

EDIT: Another issue, if the color scheme is deleted while FC is running, after FC restart it's not in the ColorSchemes folder, but after clicking the toolbar button for color schemes deleted color scheme is restored.

I tried to close FC and delete that color scheme in Windows Explorer, but after opening FC and clicking the toolbar button it was restored as well.

In both cases, deleted color scheme was not the active color scheme.

875, Windows 10.

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 15:01
by horst.epp
No such problems here.
The deletion asks for confirmation and deletes the name.colors file successfully..

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 15:21
by Dreamer
Thanks for the reply.

I'm using these specific options:
- Settings folder - following folder: "C:\Programs\!Misc\Settings\FreeCommander\Settings"
- Auto save settings - on exit
- Auto backup - Once per day
- Backup folder for settings: "%FcSrcDrive%\Programs\!Misc\Settings\FreeCommander\Settings\Backup"

Folder with the color scheme files is following: C:\Programs\!Misc\Settings\FreeCommander\Settings\ColorSchemes\
horst.epp wrote: 16.10.2022, 15:01No such problems here.
The deletion asks for confirmation and deletes the name.colors file successfully..
Just to make sure, the .colors file is not restored after you click the Color schemes toolbar button after FC restart, right?

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 15:29
by horst.epp
Dreamer wrote: 16.10.2022, 15:21 Just to make sure, the .colors file is not restored after you click the Color schemes toolbar button after FC restart, right?
Yes, there is nothing restored on any FC restart.
Btw. I use a portable installion which makes the whole game much simpler.

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 16:11
by Dreamer
OK, thanks.

I tested it in another portable instance and it works good there, so it must be one of these options:
- Settings folder - following folder: custom path, not the FC folder
- Auto backup - Once per day

If those options are disabled, it works good.

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 22:15
by Marek
That's the reason:
- Settings folder - following folder: custom path, not the FC folder
When the color list is built, all colors from the install colors folder are copied to the user colors folder.
Otherwise you would never get the newly delivered colors.

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 16.10.2022, 22:52
by Dreamer
Thanks for the reply, so it's not a bug?

Where is that "user colors folder"?

Why not copy the new color scheme files to custom settings folder instead?

It's still the portable mode, so copying the new files manually could be OK too.

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 17.10.2022, 20:45
by Marek
Where is that "user colors folder"?
In your case: C:\Programs\!Misc\Settings\FreeCommander\Settings\ColorSchemes
Why not copy the new color scheme files to custom settings folder instead?
In your case it is copied to "C:\Programs\!Misc\Settings\FreeCommander\Settings\ColorSchemes".

Re: 875 - Color scheme can't be deleted from the button menu

Posted: 17.10.2022, 21:22
by Dreamer
OK, thanks, so it works vice versa, it is copied from the FC install folder settings folder to custom settings folder.

When I deleted the files from both locations it was deleted correctly.

It's not a bug, moved to Discussion.