Loading files
442335385This file is pinned to the selected release. Download the original to open it in your design tool.
import '../core/local_key_value_store.dart';
/// Remembers that the initial launch prompt was offered or superseded by real
/// work. Escape is a decision too; reconnecting must never reopen the prompt.
class FirstHarnessLaunch {
FirstHarnessLaunch({this.storage});
final LocalKeyValueStore? storage;
static const storageKey = 'first_harness_launch_v1';
bool loaded = false;
bool handled = false;
Future<void>? _loading;
Future<void> _saving = Future.value();
Future<void> load() => _loading ??= _load();
Future<void> _load() async {
try {
handled = await storage?.read(storageKey) == 'handled' || handled;
} catch (_) {
// Unavailable preferences never prevent entering the workspace.
}
loaded = true;
}
void handle() {
if (handled) return;
handled = true;
_saving = _saving.then((_) async {
try {
await storage?.write(storageKey, 'handled');
} catch (_) {
// The decision still holds for this window.
}
});
}
Future<void> flush() => _saving;
}
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/openharness-1322671404.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
442335385This file is pinned to the selected release. Download the original to open it in your design tool.