From e66b7445f3ed134e616c34ed09c1814de7ba1f1c Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Tue, 4 Feb 2020 15:53:58 -0800 Subject: [PATCH] Simplify tab change focus logic. --- app/view/main/MainController.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index eb6869f2..ddd10e61 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -40,8 +40,7 @@ Ext.define('Hamsket.view.main.MainController', { return; } - const webview = newTab.getWebView(); - if ( webview ) webview.focus(); + newTab.focus(); // Update the main window so it includes the active tab title. if ( Hamsket.app.getTotalNotifications() > 0 ) {