check
This commit is contained in:
@@ -76,6 +76,17 @@ class LocalStore {
|
||||
_ready = true;
|
||||
}
|
||||
|
||||
/// Re-reads the terminal's identity after it has been re-pointed at another
|
||||
/// outlet.
|
||||
///
|
||||
/// [terminal] is cached on this object because every bill, topic and presence
|
||||
/// record reads it — but signing in can change which store the till belongs
|
||||
/// to, and the cached copy would go on naming the old one until a restart.
|
||||
Future<TerminalIdentity> reloadTerminal() async {
|
||||
terminal = await identityStore.load();
|
||||
return terminal;
|
||||
}
|
||||
|
||||
/// Re-reads cached state from disk. Called on start and after an import.
|
||||
Future<void> hydrate() async {
|
||||
_products
|
||||
|
||||
Reference in New Issue
Block a user