https://bugs.documentfoundation.org/show_bug.cgi?id=57466
--- Comment #22 from [email protected] ---
I can't talk about styles etc. but for GUI customization, the approach should
be IMHO:
1. try to merge
2. if that fails: inform user
I don't think you need to ask the user for confirmation. For starters, this
complicates the update process: you need to have detailed information available
in every language and the UI gets more complicated. Also, users with standard
menus don't get asked either, so why ask this particular group?
In most cases, merging should work fine - you simply traverse the list of root
menus, menu items, sidebars.. etc. in the user's xml configuration file until
you find your anchor point ("add forms menu before tools menu") and then add
the new item.
In some cases (menu items, toolbar buttons), this might fail if the user
removed everything the update process specifies as an anchor - in that case,
add the new item at the end of the target menu/toolbar - perhaps show a quick
notification?
This approach should only fail if the user manually edited xml files, e.g. he
removed the entire "View" menu with a text editor (you can't do this using the
GUI) and the update process wants to add a new item to this menu. In that case,
a simple warning that LO tried to update some part of the GUI but the file
path/to/foo.xml seems to be either broken or manually tempered with plus a link
to the release notes should do the job.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs