We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89202b2 commit 06ab215Copy full SHA for 06ab215
1 file changed
TablePro/Views/Main/Extensions/MainContentCoordinator+Favorites.swift
@@ -16,7 +16,13 @@ extension MainContentCoordinator {
16
17
if let tabIndex = tabManager.selectedTabIndex,
18
tabManager.tabs[tabIndex].tabType == .query {
19
- tabManager.tabs[tabIndex].query = favorite.query
+ let existing = tabManager.tabs[tabIndex].query
20
+ .trimmingCharacters(in: .whitespacesAndNewlines)
21
+ if existing.isEmpty {
22
+ tabManager.tabs[tabIndex].query = favorite.query
23
+ } else {
24
+ tabManager.tabs[tabIndex].query += "\n\n" + favorite.query
25
+ }
26
} else {
27
runFavoriteInNewTab(favorite)
28
}
0 commit comments