Various configuration changes aren't saved consistently

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Various configuration changes aren't saved consistently

Post by dkump »

I'm not sure if this is a bug or an enhancement. I'd like to request a change/fix for saving configuration preferences. Currently XYplorer is inconsistent in how configuration settings are saved. For example, general configuration settings can be saved manually (File, Save Settings) or automatically upon exit (Configuration, Startup & Exit, Save settings on exit). For List Management settings such as visual and power filters, you can only save upon exit. There's no option to manually save these settings. What makes this more complicated is if I want to abandon a recent list change, I have to uncheck the option to save on exit but then I lose my other lists settings in addition to the changes I just made. Lastly, tabsets are saved automatically & immediately, so you can't cancel or abandon your changes when exiting. I'd like to have settings like all of these be consistent. I suggest always having a way to manually save the setting plus the option to save when exiting. This gives users the flexibility to always startup with the same saved settings or their last session settings. If the settings are not saved by either method, then they should be abandoned when exiting. There are times I like having different settings for a single session but start over for my next session. To me, the highest priority is to have a way to manually save changes or abandon them. The option to save when exiting is a lower priority.

Also in the Startup & Exit configuration screen, I'd like to suggest a tweak to the option to save settings on exit. The option "remember most recently used lists" is indented implying that unless you check "save settings on exit" (what appears to be the parent setting), then recently used lists would not be saved. However these settings are independent so "remember most recently used lists" should not be indented. You can remember recently used lists when exiting without saving your other settings. Also related to this, the "Apply To" screen allows you to select tabsets when remembering recently used lists. Tabsets are saved regardless of this setting.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

dkump wrote:For example, general configuration settings can be saved manually (File, Save Settings) or automatically upon exit (Configuration, Startup & Exit, Save settings on exit). For List Management settings such as visual and power filters, you can only save upon exit. There's no option to manually save these settings.
Are you sure? I tested this and could save Visual and Power Filters manually without problems. All works as expected.

Also tabsets can be changed or switched and the changes do not stick when you exit the app without saving.

So, please give me a step-by-step way to reproduce the problem.

dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Re: Various configuration changes aren't saved consistently

Post by dkump »

Here's the steps I used to validate the functionality. I can reproduce this 100% of the time.

Confirm the following configuration settings:
1. Save settings on exit (unchecked)
2. Remember most recently used lists (unchecked)
3. Save settings and exit program.

Modify Power Filter settings.
1. Open XYplorer
2. Go to Tools, List Management, Power Filters menu.
3. Add new filter called "TEST". I defined mine as "TEST|TEST" !attr: d and placed it in the middle of the current filters.
4. Press OK to close window.
5. Apply the filter to validate it works.
6. Save configuration via menu File, Save Settings.
7. Exit XYplorer (used X in upper right corner)
8. Open XYplorer.
9. Go to Tools, List Management, Power Filters. Confirm that changes made above are gone even though settings were saved.

Create a new tabset
1. Create 3 tabs. Each tab is a different folder.
2. Go to Tabsets, Save As menu.
3. Save tabset as "JUNK".
4. Go to Tabsets, New menu.
5. Created a new tabset named "JUNK2".
4. Go to Tabsets, Open menu. Verify both tabset were created and listed.
5. Exit XYplorer (X in upper right corner)
6. Open XYplorer
7. Go to Tabsets, Open menu. Verify tabset JUNK and JUNK2 are listed. However, neither should exist because settings were not saved. Perhaps JUNK should exist, but JUNK2 should not. As soon as they were created, a folder was added at \AppData\Roaming\XYplorer\Panes and has to be manually deleted.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

2. Remember most recently used lists (unchecked)
This item must be checked else power filters are not saved.

Tabsets that are explicitly saved to disk are NOT dependent on the above setting. Remember most recently used lists only applies to the MRU list of tabsets, not to the tabsets themselves.

dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Re: Various configuration changes aren't saved consistently

Post by dkump »

Thanks for the reply. I wasn't sure if you were agreeing or disagreeing with me. For the power filters, I understand this is how it works but it's not consistent or adequate. How do you make temporary changes for a session and then revert back to your previous filters when you exit? If I check the box to remember MRU list, then it will save my temporary settings when I exit. If I uncheck the box, it will revert back to system default settings and not my last known settings. There's not a way to revert back to my settings. There should be a way to save these settings on demand. I think the File, Save Settings menu should save them like other configuration settings and keep my previous settings if I don't save them. That would solve my dilemma of reverting back to my last known/custom state.

For the tabsets, I understand that the MRU lists have nothing to do with this. I'm just saying that when you create a tabset (Tabsets, New menu), it's immediately saved to disk and you don't have a choice to save them or not. There's no option to save them on demand.

My suggestion is to have all configuration saved consistently. General configuration settings (F9), power filters, and tabsets are all different. The list is even larger when you include the toolbar, keyboard, tree, and other settings. The general settings (F9) is the most prevalent and best way since you have the flexibility to control if you want your current settings saved for the next session or revert back to your last known state. The power filters is the worse scenario since you can accidentally lose all of your settings with a single unchecked box when your intention was to go back to your last known state. That's what happened to me which is what started this chain.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

Probably my post was not clear, but what I wanted to say is: It is all consistent and works as expected. I don't see any problem or inconsistency and there is nothing that should be changed here.

dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Re: Various configuration changes aren't saved consistently

Post by dkump »

Fair enough. Can you at least answer my question as to how I can configure it to revert back to my last known power filters when exiting the program (i.e. my last saved configuration, not the system default)? That's what I can't figure out how to do. Since I couldn't do this through UI configuration settings, I was looking into writing a script that restored my INI file and then exited XYplorer without saving settings. If there's an easier way, I'd be interested. Thanks.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

dkump wrote:Fair enough. Can you at least answer my question as to how I can configure it to revert back to my last known power filters when exiting the program (i.e. my last saved configuration, not the system default)? That's what I can't figure out how to do. Since I couldn't do this through UI configuration settings, I was looking into writing a script that restored my INI file and then exited XYplorer without saving settings. If there's an easier way, I'd be interested. Thanks.
1. Save settings on exit (unchecked)
2. Remember most recently used lists (checked)
3. Ensure the Power Filters are in the state you want to have saved.
4. Save settings.

Now you can change the Power Filters and on exiting/restarting they will revert back to the saved state.

But, of course, you cannot control the saved state of Power Filters independently of the state of other settings. All settings (under Save Configuration) are saved or not saved together.

I just saw one possible source of confusion: the "Remember most recently used lists" is indented under the "Save settings on exit" setting. This is rubbish. They have to go in the same level as they are not logically interlocked in that way. I'll change that in the next beta version.

dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Re: Various configuration changes aren't saved consistently

Post by dkump »

Sorry to keep disagreeing, but all settings under Save Settings are not saved together. That's why I'm saying it inconsistent. When you Save Settings, it does not save power filters. Power Filters are independent, albeit the ability to save them are indirectly controlled in the exit configuration settings. However they're not saved by the Save Settings menu. I wish they were saved together. In my mind, it would be ideal if everything saved in the INI file were saved when you press the Save Settings menu.

There's no need to respond. I'm sure you're tired of this subject. I've figured out how to work around it. I love the scripting capabilities.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

Well, I tested it and it works.

Maybe somebody else can explain it better than me.

dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Re: Various configuration changes aren't saved consistently

Post by dkump »

I think if you moved the checkbox for "remember most recently used lists" to the Controls and More section and put it under the Miscellaneous header next to "remember list settings per tab", that would avoid much of the confusion. That's a better fit. Not only should it not be indented under "save settings on exit", I don't think it should even be on the Startup & Exit section if it works as you described.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

dkump wrote:I think if you moved the checkbox for "remember most recently used lists" to the Controls and More section and put it under the Miscellaneous header next to "remember list settings per tab", that would avoid much of the confusion. That's a better fit. Not only should it not be indented under "save settings on exit", I don't think it should even be on the Startup & Exit section if it works as you described.
Yes, you are right. But since it has always been where it is, and not many were confused, and there is not enough space under Miscellaneous I leave it as it is for now.

admin
Site Admin
Posts: 67268
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Various configuration changes aren't saved consistently

Post by admin »

What about renaming "remember most recently used lists" to "Include most recently used lists on save". And the other one to "Auto-backup settings on save", or so (always thankful for better english).

dkump
Posts: 58
Joined: 26 Oct 2012 22:13

Re: Various configuration changes aren't saved consistently

Post by dkump »

If you move the MRU checkbox to the Controls and More section, then I'd leave it alone to be consistent with list settings per tab. If you're leaving it on the Startup and Exit section, then I like the name "Include most recently used lists on save" much better. "Remember" implies you'll automatically remember the settings when exit for the next session, but you're really including them with the save command.

Post Reply