[Lazarus] Desktops and multiple source editors

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 10 11:03:52 CEST 2015

On Thu, 10 Sep 2015 09:30:00 +0200
Ondrej Pokorny <lazarus at kluug.net> wrote:

> In this case, it should be handled outside the desktops feature the same 
> like a project gets reopened.
> And it completely fits to my "package is a project" philosophy - project 
> is optionally reopened at ide start, packages should be as well 
> (optionally).

Well, since a project has more than a package (e.g. session and macro
values) it would be more "a project is a package".

> Please test the attached patch. 

Thanks. Applied.

> It adds the "Open packages" checkbox to 
> environment options -> files. If checked, packages get reopened at 
> startup. The setting is true by default, which changes the default IDE 
> behavior. But IMO the most users will want it.

The "most users" argument is seldom good.
There are basically two groups of users. Those who want a fresh IDE
when starting and those who want to continue where they stopped working.
I don't think we need another option. Keep it simple and stupid and
change "Open last project on start" to "Open last project and packages
at start".
When project groups arrive this option will probably become "Open last
project, groups and packages at start."

> If you don't think so, change the "Open packages" default value to false.
> Desktop change doesn't reopen/close packages (at least in undocked 
> environment), which is correct IMO.

Fine with me.


More information about the Lazarus mailing list