First time here? Check out the FAQ!
1

The meaning for the perference option: main.last-prefs-page.

Hi,

I noted the following perference option: main.last-prefs-page. Say, for my case, it has the following setting:

main.last-prefs-page = (8,
                        -1)

I cannot figure out the meaning of it. Any hints?

Regards.

hongyi-zhao's avatar
547
hongyi-zhao
asked 2020-06-02 07:43:03 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2020-06-02 20:36:38 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

It's storing the last page displayed in the preferences dialog.

Wingware Support's avatar
4.2k
Wingware Support
answered 2020-06-02 08:58:34 -0600
edit flag offensive 0 remove flag delete link

Comments

If so, it has no real effect on the user's settings for the wing and only adds some hint/clue into the debugging info.

hongyi-zhao's avatar hongyi-zhao (2020-06-02 10:29:05 -0600) edit

The preferences file stores a variety of things. Is the location of this setting causing problems for you?

Wingware Support's avatar Wingware Support (2020-06-02 10:37:17 -0600) edit

I want to share the same preferences file among wings installed on different machines. For this purpose, I use a git repo to store this file and git (clone | pull | commit) on all of my machines to keep the same working settings. But the problem is that the entries like main.last-prefs-page and main.update-history maybe changed time-to-time which will trigger the very frequently running of the git workflow though the changes of them don't have any real effect on the wing's internal used settings.

Regards.

hongyi-zhao's avatar hongyi-zhao (2020-06-02 18:02:49 -0600) edit

I've tagged this as a feature request. Another idea, other than using git, would be to set something up that just scp's the file. Or perhaps write a script that strips out the things you don't want before committing.

Wingware Support's avatar Wingware Support (2020-06-02 20:38:13 -0600) edit

Though scping/rsyncing the file among different machines will work, it's not a powerful method like git based one. In fact, I've written the strip script and I expect wing can invoke it when I exit/close wing, considering that this is just a wing specific job.

hongyi-zhao's avatar hongyi-zhao (2020-06-02 21:00:25 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer