Recent

Author Topic: Some settings don't stick  (Read 4460 times)

forumuser

  • Newbie
  • Posts: 2
Some settings don't stick
« on: November 17, 2018, 12:37:29 pm »
Hi,

Lazarus v1.8.4 x64 together with the cross-i386-win32-win64 file (to be able to compile 32-bit .exe files as well)
On Windows Server 2012 R2 U3

lazarusstart.exe is called with: --pcp="D:\Tools\Lazarus\Data\configs"

I have two additional packages installed: AnchorDockingDsdn + sparta_DockedFormEditor

All settings that I set will remain when the IDE is quit and started again, but not:
Environment - Window -
  • IDE title starts with project name

Environment - Window -
  • IDE title shows selected build mode


and
Environment - IDE CoolBar - When modifying the second (right) comiple / debugger toolbar

The "environmentoptions.xml" should contain the changes to that bar and the file itself is written each time when I do the modification again but _what_ I've changed isn't written into it!?!

This is a _fresh_ installation / configuration with no former installations (first time Lazarus / Free Pascal user)!

Any ideas?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Some settings don't stick
« Reply #1 on: November 17, 2018, 01:57:00 pm »
Try the new 2.0 release candidate please.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: Some settings don't stick
« Reply #2 on: November 17, 2018, 06:46:24 pm »
Try the new 2.0 release candidate please.

I can confirm that this issue still exists with Lazarus 2.0RC2.
One consistently annoying one for me is this.

Steps to Reproduce

ToolButton Run without Debugging

You can get this in the IDE options by selecting

    Environment -> IDE CoolBar -> Select the right part of the tool bar under Add/Config/Delete Toolbar(s) and then click Configure.

    Now open the node Run menu commands and select Run without Debugging (Shift+Ctrl+F9)
    Click the right arrow button

    Now select the added command and then click the up arrow button 6x, so the Run without Debugging command is placed straight above the Run (F9) command.
    Click OK, then click OK again, to close the IDE options window.

After this you can see the run without debugging button next to the Run button in the IDE CoolBar.

Now, Restart the IDE and the newly added run without debugging button is disappeared.




FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: Some settings don't stick
« Reply #3 on: November 17, 2018, 07:48:47 pm »
1.There is a checkbox Autosave active desktop in form Manage desktops.
2. When this checkbox is not checked, restarting of Lazarus restores last manually saved current desktop. So, any changes of desktop made in last session will be lost if current desktop not saved manually.
3. Settings for toolbars are restored too.
4. I'm not sure that such behaviour for toolbars is right.
 

forumuser

  • Newbie
  • Posts: 2
Re: Some settings don't stick
« Reply #4 on: November 17, 2018, 08:03:40 pm »
Thanks, FTurtle!

I've had this setting disabled and after enabling it, these changed settings persist now :)

Although it's a real hassle because it seems it's required to change them for every already existing desktop again^^

Do you know from which file Lazarus gets these elements to restore them if "Autosave active desktop" is disabled?
I'd be tempted to modify that file instead...

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: Some settings don't stick
« Reply #5 on: November 17, 2018, 08:27:00 pm »
1.There is a checkbox Autosave active desktop in form Manage desktops.
2. When this checkbox is not checked, restarting of Lazarus restores last manually saved current desktop. So, any changes of desktop made in last session will be lost if current desktop not saved manually.
3. Settings for toolbars are restored too.
4. I'm not sure that such behaviour for toolbars is right.

Thanks, this did solve my issue.  :)

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: Some settings don't stick
« Reply #6 on: November 17, 2018, 09:58:14 pm »
Do you know from which file Lazarus gets these elements to restore them if "Autosave active desktop" is disabled?
I'd be tempted to modify that file instead...

No, I did't dig yet how options are stored.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Some settings don't stick
« Reply #7 on: November 17, 2018, 11:27:32 pm »
Ah yes, it was the desktop issue.

4. I'm not sure that such behaviour for toolbars is right.
Toolbars are part of a visual "desktop". I think it is correct to include their settings there.

Do you know from which file Lazarus gets these elements to restore them if "Autosave active desktop" is disabled?
I'd be tempted to modify that file instead...
environmentoptions.xml in local config dir. See "Desktops" tag there.
« Last Edit: November 17, 2018, 11:41:43 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018