Bug 160032 - MASTER Document -- updating linked documents automatically: different setting for master documents (on opening)
Summary: MASTER Document -- updating linked documents automatically: different setting...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyInteresting, easyHack, skillCpp, topicUI
Depends on:
Blocks: Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2024-03-04 18:22 UTC by peter josvai
Modified: 2024-04-23 10:51 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peter josvai 2024-03-04 18:22:26 UTC
Hi, 

Automatic updates are not our favorites, are they? :) 
We like to have control over what happens.

BUT... Master Documents are  a different matter...
cause they are document organizers...
their mere existence is about linking subdocuments into them...

Being asked for the 20th time "do you want to update the links?"
is annoying...
then having to look for the "update links" menu item is frustrating...


It'd be great if we could set this option: yes, update the links
or ask me...

This option we already have...
but it refers to any document... not master documents


It'd be great to be able to set this for master documents, specifically...

. . .
possible further steps:

It could be automatic for master documents...
BUT perhaps only on opening...

when it is already open, there could be notifications in Navigator, perhaps..
about which document has been updated since the last update..


BUT being able to make it automatic for master documents when opening it, and only then, would be a GREAT thing already!!


- - - thank you for developing Writer and Libreoffice - - -
Comment 1 Heiko Tietze 2024-04-08 09:30:12 UTC
The update usually comes on cost of performance, and you don't want to disable the question in all use cases. But how about adding the option "[ ] Don't ask again during the session" to the dialog. Meaning the next time you start Writer it is necessary again to click yes or no.

Olivier, you are a heavy master-document user (not heavy, sorry, but regular user *g*). Have you experienced the same issue as Peter?
Comment 2 Olivier Hallot 2024-04-08 12:03:41 UTC
I like "[ ] Don't ask again during the session".

I don't know how each user work with MDs. If you open and close MDs 20 times a day, it will be annoying (anything will be annoying 20x a day)

I my case I open once and refresh links once I need. Either from the Navigator or from Tools - Update. The latest does not ask for confirmation.

I think the prompt is useful. There are times where you don't want to rebuild your document and want to make a small fix. May be you want to see the previous version before updating the links.

YMMV.
Comment 3 Heiko Tietze 2024-04-23 10:51:59 UTC
LinkManager::UpdateAllLinks() shows the question with STR_QUERY_UPDATE_LINKS. The function is used in various scenarios across all modules and we must not disable it globally. But there is a bAskUpdate option! And since the function is used only a few times in sw/, I suggest to find the right code pointer per debugger.

Not sure if the weld::MessageDialog can have a checkbox, might require some UI based dialog. The checkbox would be hidden unless it's a master document, and the dialog in this condition if the checkbox was checked before (or rather unchecked with "[x] Show this message").