Remember the diff layout across reloads

One file at a time or all files stacked is saved in the app's
preferences and restored when the app starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 19:23:21 +00:00
parent 9bf080597a
commit cbc06b2f13
4 changed files with 86 additions and 2 deletions
@@ -1,3 +1,5 @@
import 'dart:async';
import 'package:flutter/material.dart';
import '../../../shell/list_detail_policy.dart';
@@ -34,6 +36,8 @@ class DiffWindows {
if (_started) return;
_started = true;
manager.kinds.register(kind);
// The saved diff layout is ready before the first diff opens.
unawaited(diffShowsAllFiles.restore());
}
void dispose() {