Save file sort parameters between sessions

More
4 years 11 months ago #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 to join the conversation.

More
4 years 11 months ago #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 to join the conversation.

More
4 years 11 months ago #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 to join the conversation.

More
4 years 11 months ago #224814 by rodw
 

Attachment not found


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.

Please Log in to join the conversation.

More
4 years 11 months ago #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.

Please Log in to join the conversation.

More
4 years 11 months ago #224822 by rodw
hmm, I wonder if there are some clues in /home/plasma/qtvcp.log

I will check it tonight

Please Log in to join the conversation.

More
4 years 11 months ago #224826 by cmorley
The file should be recorded in (substitute your home folder name for chris):
/home/chris/.config/QtVcp/

Please Log in to join the conversation.

More
4 years 11 months ago #224832 by cmorley

It seems that no matter what, on each restart (of LCNC), the following are always "None":
Code:
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 to join the conversation.

More
4 years 11 months ago #224846 by phillc54
It seems to be working for me with master updated this afternoon.

Please Log in to join the conversation.

More
4 years 11 months ago #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.

Please Log in to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum