fix: alot

This commit is contained in:
2026-10-19 21:41:34 +02:00
parent 30dd74af90
commit b0074aeb3f
40 changed files with 1979 additions and 405 deletions
@@ -37,6 +37,15 @@ class BarScreenViewModel extends ChangeNotifier {
BarTab? get selectedTab =>
_tabs.firstWhereOrNull((tab) => tab.id == _selectedTabId);
bool hasOpenTabNamed(String name, {String? exceptTabId}) {
final normalized = name.trim().toLowerCase();
return _tabs.any(
(tab) =>
tab.id != exceptTabId &&
tab.customerName.trim().toLowerCase() == normalized,
);
}
void ensureLoaded() {
if (_subscription != null) return;