Skip to main content

Module storage_conflict

Module storage_conflict 

Source
Expand description

The dialogs that settle a write the host refused because the stored document changed, and that offer the copies kept of a chart’s drawings.

Structs§

LocalCopiesDialog
Offers the copies of a chart’s drawings that “Keep both” in a StorageConflictDialog kept (ConflictChoice::KeepLocalCopy), for the symbol the chart shows: load one, which replaces the drawings on the chart as one step that undo reverts, or discard one once the user confirms. Open it with Self::open, from a menu or after a copy was kept, and call Self::show every frame. The chart needs storage, set with Chart::set_storage.
StorageConflictDialog
Asks how to settle a write the host refused because another client changed the document: keep both versions, reload the stored one or overwrite it. It has no close button and ignores Escape, since the unsaved document waits for a choice; Enter keeps both.