Save file sort parameters between sessions
31 Oct 2021 20:38 #224793
by rodw
Replied by rodw on topic Save file sort parameters between sessions
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!What version of Qt are you using (or what version of linux).
It works for me with mint 20 qt 5.12.8
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2388
- Thank you received: 779
31 Oct 2021 21:15 #224798
by snowgoer540
Replied by snowgoer540 on topic Save file sort parameters between sessions
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.
31 Oct 2021 21:45 #224806
by cmorley
Replied by cmorley on topic Save file sort parameters between sessions
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.
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.
31 Oct 2021 22:17 #224814
by rodw
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.
Replied by rodw on topic Save file sort parameters between sessions
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.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2388
- Thank you received: 779
01 Nov 2021 00:18 #224820
by snowgoer540
See attached.
Replied by snowgoer540 on topic Save file sort parameters between sessions
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 or Create an account to join the conversation.
01 Nov 2021 02:31 #224822
by rodw
Replied by rodw on topic Save file sort parameters between sessions
hmm, I wonder if there are some clues in /home/plasma/qtvcp.log
I will check it tonight
I will check it tonight
Please Log in or Create an account to join the conversation.
01 Nov 2021 03:44 #224826
by cmorley
Replied by cmorley on topic Save file sort parameters between sessions
The file should be recorded in (substitute your home folder name for chris):
/home/chris/.config/QtVcp/
/home/chris/.config/QtVcp/
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
01 Nov 2021 04:11 #224832
by cmorley
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?
Replied by cmorley on topic Save file sort parameters between sessions
could you add: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.
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.
01 Nov 2021 07:02 #224846
by phillc54
Replied by phillc54 on topic Save file sort parameters between sessions
It seems to be working for me with master updated this afternoon.
Please Log in or Create an account to join the conversation.
01 Nov 2021 07:05 #224847
by cmorley
Replied by cmorley on topic Save file sort parameters between sessions
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.
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.086 seconds