Skip to main content

AppTxExt

Trait AppTxExt 

Source
pub trait AppTxExt {
    // Required method
    fn announce_and_open(&self, path: VaultPath, created: bool);
}
Expand description

Sender helpers for the create-then-open sequence shared by every note-creation site (create dialog, quick note, note browser, sidebar, journal).

Required Methods§

Source

fn announce_and_open(&self, path: VaultPath, created: bool)

Announce a freshly created note so sidebars browsing its directory refresh, then open it. The notification is gated on created (an already-existing note needs no refresh); the note is opened regardless.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§