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
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ extension MainContentCoordinator {
var errTab = tabManager.tabs[idx]
errTab.errorMessage = error.localizedDescription
errTab.isExecuting = false
errTab.lastExecutedAt = Date()
tabManager.tabs[idx] = errTab
}
toolbarState.setExecuting(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ extension MainContentCoordinator {
let needsLazyQuery = newTab.tabType == .table
&& (newTab.resultRows.isEmpty || isEvicted)
&& (newTab.lastExecutedAt == nil || isEvicted)
&& newTab.errorMessage == nil
&& !newTab.query.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty

if needsLazyQuery {
Expand Down
1 change: 1 addition & 0 deletions TablePro/Views/Main/MainContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ struct MainContentView: View {
tab.tabType == .table
&& (tab.resultRows.isEmpty || tab.rowBuffer.isEvicted)
&& (tab.lastExecutedAt == nil || tab.rowBuffer.isEvicted)
&& tab.errorMessage == nil
&& !tab.query.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
} ?? false
if needsLazyLoad && !hasPendingEdits && isConnected {
Expand Down
Loading