Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions TableProMobile/TableProMobile.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_ENTITLEMENTS = TableProWidgetExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = D7HJ5TFYCU;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = TableProWidget/Info.plist;
Expand Down Expand Up @@ -1813,7 +1813,7 @@
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_ENTITLEMENTS = TableProWidgetExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = D7HJ5TFYCU;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = TableProWidget/Info.plist;
Expand Down Expand Up @@ -1969,7 +1969,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_ENTITLEMENTS = TableProMobile/TableProMobileRelease.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = D7HJ5TFYCU;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -2011,7 +2011,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_ENTITLEMENTS = TableProMobile/TableProMobileRelease.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = D7HJ5TFYCU;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
11 changes: 11 additions & 0 deletions TableProMobile/TableProMobile/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ final class AppState {
}
}

func reorderGroups(_ reordered: [ConnectionGroup]) {
groups = reordered
groupStorage.save(groups)
for group in reordered {
syncCoordinator.markDirtyGroup(group.id)
}
syncCoordinator.scheduleSyncAfterChange()
}

func deleteGroup(_ groupId: UUID) {
groups.removeAll { $0.id == groupId }
groupStorage.save(groups)
Expand All @@ -129,6 +138,7 @@ final class AppState {
syncCoordinator.markDirty(connections[index].id)
}
storage.save(connections)
updateWidgetData()

syncCoordinator.markDeletedGroup(groupId)
syncCoordinator.scheduleSyncAfterChange()
Expand Down Expand Up @@ -163,6 +173,7 @@ final class AppState {
syncCoordinator.markDirty(connections[index].id)
}
storage.save(connections)
updateWidgetData()

syncCoordinator.markDeletedTag(tagId)
syncCoordinator.scheduleSyncAfterChange()
Expand Down
Loading
Loading