focus on the tab of the new search

This commit is contained in:
Zlatin Balevsky
2019-06-02 03:54:34 +01:00
parent 15508f417d
commit d18a618575
2 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ class MainFrameController {
@ControllerAction
void search() {
def cardsPanel = builder.getVariable("cards-panel")
cardsPanel.getLayout().show(cardsPanel, "search window")
def search = builder.getVariable("search-field").text
def uuid = UUID.randomUUID()
Map<String, Object> params = new HashMap<>()

View File

@@ -55,6 +55,7 @@ class SearchTabView {
parent = mvcGroup.parentGroup.view.builder.getVariable("result-tabs")
parent.addTab(searchTerms, pane)
int index = parent.indexOfTab(searchTerms)
parent.setSelectedIndex(index)
def tabPanel
builder.with {