Selaa lähdekoodia

Add option in local constructor to show window

JoostSijm 4 vuotta sitten
vanhempi
commit
2f89e0f53f
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/rival_regions_wrapper/middleware.py

+ 2 - 2
src/rival_regions_wrapper/middleware.py

@@ -22,8 +22,8 @@ class MiddlewareBase(ABC):
 class LocalAuthentication(MiddlewareBase):
     """Local authentication"""
 
-    def __init__(self, username, password, login_method):
-        self.client = AuthenticationHandler()
+    def __init__(self, username, password, login_method, show_window=False):
+        self.client = AuthenticationHandler(show_window)
         self.client.set_credentials({
             'username': username,
             'password': password,