|
Post by mueh on Jun 3, 2020 3:17:56 GMT -5
George: Recent Files flist is nearly useless if multiple instances are used since it is updated from all instances .
My Suggestion is to use 'Recent Files.instance.FLIST'
Here the untested Code which might be improved by a field in opt FM after Nr of Recent files to have a Private Recent flist for this instance .
_TabData.inc
METHOD LoadFileList(flist AS STRING) AS LONG
LoadData: ' Load the FILELIST data
if flist = "Recent Files" and ENV.einstance <> "" then
LIO.Setup("IE", "", "", ENV.FileListPath + flist + "."+ENV.einstance + ".FLIST") ' Tell IO what we're opening
else
LIO.Setup("IE", "", "", ENV.FileListPath + flist + ".FLIST") ' Tell IO what we're opening
endif
METHOD SaveReq()
if FileListNm = "Recent Files" and ENV.einstance <> "" then
srIO.Setup("OR", "", "", ENV.FileListPath + FileListNm + "."+ENV.einstance + ".FLIST") ' Tell IO what we're opening
else
srIO.Setup("OR", "", "", ENV.FileListPath + FileListNm + ".FLIST") ' Tell IO what we're opening
endif
What do you think about this impprovement ?
Thanks
|
|
|
Post by George on Jun 4, 2020 12:52:10 GMT -5
MUEH: Sure, it's a fairly small change, transparent to 99% of the users. I don't think it needs a new option, it should just be part of using INSTANCES.
It's bit more involved than your sample. The calls to the IO Object have to support Create if Missing, and the sFileListAdd routine had to be adjusted as well.
George
|
|
|
Post by George on Jun 6, 2020 13:55:32 GMT -5
Mueh: This change will have to wait a bit, some anomalies have come up, so I'm leaving it till I have some more time.
George
|
|
|
Post by mueh on Jun 27, 2020 3:05:56 GMT -5
George: Thanks for implementing it . Works nearly perfect with 20177 . There is a small concern . If FORGET is done in Recent Tab of an Non Default Instance the file list is saved under Recent Files.FLIST
METHOD FMLCmdForget(i AS LONG)
is doing DoSet(%SaveReq + %LoadData) ' Ask for FILELIST to be saved
CRCMV : I use now edit to delete the entries Thanks
|
|
|
Post by George on Jun 27, 2020 10:19:36 GMT -5
Mueh: An oversight, now corrected (In SaveReq).
In the next release.
George
|
|