feat: add force option to app.focus() (#22612)
This commit is contained in:
parent
75cef84877
commit
b724fbc0ed
5 changed files with 26 additions and 6 deletions
|
@ -84,7 +84,7 @@ bool SetDefaultWebClient(const std::string& protocol) {
|
|||
return ran_ok && exit_code == EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
void Browser::Focus() {
|
||||
void Browser::Focus(gin_helper::Arguments* args) {
|
||||
// Focus on the first visible window.
|
||||
for (auto* const window : WindowList::GetWindows()) {
|
||||
if (window->IsVisible()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue