Bug 158115 - View settings don't keep their value
Summary: View settings don't keep their value
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer Web (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Options-Dialog
  Show dependency treegraph
 
Reported: 2023-11-08 11:21 UTC by Gabor Kelemen (allotropia)
Modified: 2023-11-24 21:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The dialog after enabling the 4 settings at the bottom (102.24 KB, image/png)
2023-11-08 11:21 UTC, Gabor Kelemen (allotropia)
Details
The 4 settings after restarting LO - disabled again (101.57 KB, image/png)
2023-11-08 11:22 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-11-08 11:21:43 UTC
Created attachment 190719 [details]
The dialog after enabling the 4 settings at the bottom

When tracked changes or outline folding settings are changed in Options - Writer/Web - View page, these are not kept after the next restart of LO.

1. Go to Options - Writer/Web - View page
2. Enable the settings: 
Tracked deletions in margins ; 
Tooltips on tracked changes; 
Show outline-folding buttons; 
Include sub levels
3. Press OK, then reopen the Options - Writer/Web - View page. The checkboxes are still enabled.
4. Restart LO
5. Go to Options - Writer/Web - View page
-> the settings are disabled.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 97b6b6b16c4b623f8a34393a906272439a7f0314
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded

Looking inside the code:
https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/uibase/config/usrpref.cxx#n85 SwContentViewConfig::GetPropertyNames
it seems the config keys behind these boxes (Display/ShowChangesInMargin, Display/ShowInlineTooltips, Display/ShowOutlineContentVisibilityButton, Display/TreatSubOutlineLevelsAsContent) are not intended to be used in the Web editor settings.

Therefore I think the correct solution would be to hide these settings from the Web/View page.
Comment 1 Gabor Kelemen (allotropia) 2023-11-08 11:22:10 UTC
Created attachment 190720 [details]
The 4 settings after restarting LO - disabled again
Comment 2 MW 2023-11-08 13:46:07 UTC
REPRODUCIBLE 

Steps:

1. Opened Writer document

2. Opened tools tab

3. Opened options

4. Selected LibreOffice Writer/Web 

5. Checked the following:
             Tracked deletions in margins 
             Tooltips on tracked changes 
             Show outline-folding buttons
             Include sub levels

6. Applied changes 

7. Exited and reopened LibreOffice 

8. Selected LibreOffice Writer/Web 

Result:

Settings for tracked deletions in margins, tooltips on tracked changes, show outline-folding buttons and Include sub levels do not save/reverts to default.

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 Gabor Kelemen (allotropia) 2023-11-20 15:23:42 UTC
Also the Display Fields sections two settings: 
Hidden text
Hidden paragraphs
are similarly non-working.

NonprintingCharacter/HiddenText
NonprintingCharacter/HiddenParagraph
Comment 4 Gabor Kelemen (allotropia) 2023-11-24 21:53:32 UTC
Note: after a bit more investigation, looks like adding the Display/ShowOutlineContentVisibilityButton and Display/TreatSubOutlineLevelsAsContent keys make sense to add for Writer/Web, since the Outline Folding feature works in Writer/Web as well.