Hi All!
I'd like to request some help with implementing a feature. I'm a bsc
student working as a trainee and I'm still very unfamiliar with the LO
codebase.
I was given the task to implement this:
https://bugs.freedesktop.org/show_bug.cgi?id=47011
I have added a checkbox in Tools -> Options -> Load/Save -> General with
the text "Save document when saving AutoRecovery information", copying how
other checkboxes work. I triple checked everything, but this checkbox still
won't save its state.
In the code where AutoRecovery does the recovery saving, I have added an
if, so if the value set by the checkbox mentioned above is true, it would
call store() on the file, and save it. I would think I'd also need to do
something else here that lets the UI know that the file has been saved (eg.
the floppy disk icon gets greyed out), but I have no idea where should I
begin with that (I haven't been able to find the code that handles regular
saving.).
Here is what I have done so far: https://gerrit.libreoffice.org/2506
Krisztian
Context
- autosave feature help · Krisztian Pinter
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.