[IDE] - Add menu item to Save All Preferences.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[IDE] - Add menu item to Save All Preferences.

Post by skywalk »

All preference settings are only saved on exit.
Please allow me to update them with a menu pick and thus a ShortCut for automation.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: [IDE] - Add menu item to Save All Preferences.

Post by freak »

They are also saved every time you change as setting.
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [IDE] - Add menu item to Save All Preferences.

Post by skywalk »

Yes, but I cannot automate that?

And why this behavior weird behavior?

Initial Preference setting...
[OpenedFiles]
Count = 7
After manually changing a Preference setting...
[OpenedFiles]
Count = 0
After closing IDE...
[OpenedFiles]
Count = 7

Intentional or bug?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: [IDE] - Add menu item to Save All Preferences.

Post by freak »

No bug.

If you just want the currently open files in a tool, just use the PB_TOOL_FileList environment variable.
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [IDE] - Add menu item to Save All Preferences.

Post by skywalk »

Will do, but you can't be serious?
If I make a change to any Preference, why is my list Opened Files deleted?
That is why I request that Save All Preferences actually do what I want without exiting the IDE.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: [IDE] - Add menu item to Save All Preferences.

Post by freak »

The preferences file is for the IDE to store and read its data. It can write there whatever it wants.
quidquid Latine dictum sit altum videtur
Post Reply