Save file sort parameters between sessions

More
31 Oct 2021 20:38 #224793 by rodw

What version of Qt are you using (or what version of linux).
It works for me with mint 20 qt 5.12.8

I pulled the latest version of master to get your changes. So I should be running QTplasmac  v1.215.110 2021 Oct 27I was testing on a sim on my Chromebook. I'll try on real hardware when I get a month in the next day or so as the weekend is over!

Please Log in or Create an account to join the conversation.

More
31 Oct 2021 21:15 #224798 by snowgoer540
I was a bit confused by your earlier post, you said it worked but then asked if it could stay between sessions?  That would indicate to me it didn’t work?  Or did I miss something?

Please Log in or Create an account to join the conversation.

More
31 Oct 2021 21:45 #224806 by cmorley
Can you post the output from the terminal start and close of qtplasmac?
There might be a clue in there. Qsettings (the basis of this) was added in qt 5.9.x so should function.

Please Log in or Create an account to join the conversation.

More
31 Oct 2021 22:17 #224814 by rodw
 

File Attachment:

File Name: qtplasmac_run.txt
File Size:4 KB

Dump attached. I wonder if its a permissions issue?Where is it saved?This is RIP so I assumed its under ~/linuxcnc-dev somewhereMaybe QT saves elsewhere.
Attachments:

Please Log in or Create an account to join the conversation.

More
01 Nov 2021 00:18 #224820 by snowgoer540

Can you post the output from the terminal start and close of qtplasmac?
There might be a clue in there. Qsettings (the basis of this) was added in qt 5.9.x so should function.


See attached.
Attachments:

Please Log in or Create an account to join the conversation.

More
01 Nov 2021 02:31 #224822 by rodw
hmm, I wonder if there are some clues in /home/plasma/qtvcp.log

I will check it tonight

Please Log in or Create an account to join the conversation.

More
01 Nov 2021 03:44 #224826 by cmorley
The file should be recorded in (substitute your home folder name for chris):
/home/chris/.config/QtVcp/
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
01 Nov 2021 04:11 #224832 by cmorley

It seems that no matter what, on each restart (of LCNC), the following are always "None":
sect = self.SETTINGS_.value('sortIndicatorSection')
order = self.SETTINGS_.value('sortIndicatorOrder')

Although they are being assigned a value when they are getting set during the cleanup.

Also, if I hard code them (3 and 1 for date and descending), then it does work. So it's something with storing or recalling the setting.
 

could you add:
self.SETTINGS_.sync()

to file_manager in the _hal_cleanup function after the line:
self.SETTINGS_.setValue('sortIndicatorOrder', h.sortIndicatorOrder())

And see if that helps?

Please Log in or Create an account to join the conversation.

More
01 Nov 2021 07:02 #224846 by phillc54
It seems to be working for me with master updated this afternoon.

Please Log in or Create an account to join the conversation.

More
01 Nov 2021 07:05 #224847 by cmorley
excellent. I found some time to test on an older system. It seems newer versions of qt must call synch() automatically, so i added the command to cover older systems.

Hopefully it works for everyone now.
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.102 seconds
Powered by Kunena Forum