mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
Introjucer: tweaked document focus behaviour.
This commit is contained in:
parent
2329cfa286
commit
baecac82d9
7 changed files with 30 additions and 20 deletions
|
|
@ -199,7 +199,7 @@ bool MainWindow::openFile (const File& file)
|
|||
}
|
||||
else if (file.exists())
|
||||
{
|
||||
return getProjectContentComponent()->showEditorForFile (file);
|
||||
return getProjectContentComponent()->showEditorForFile (file, true);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
@ -349,10 +349,10 @@ void MainWindowList::closeWindow (MainWindow* w)
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindowList::openDocument (OpenDocumentManager::Document* doc)
|
||||
void MainWindowList::openDocument (OpenDocumentManager::Document* doc, bool grabFocus)
|
||||
{
|
||||
MainWindow* w = getOrCreateFrontmostWindow();
|
||||
w->getProjectContentComponent()->showDocument (doc);
|
||||
w->getProjectContentComponent()->showDocument (doc, grabFocus);
|
||||
}
|
||||
|
||||
bool MainWindowList::openFile (const File& file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue