From 81b5d015fdeecfcf2236a61c433d4c2dac929668 Mon Sep 17 00:00:00 2001
From: Athanasius <github@miggy.org>
Date: Mon, 16 Aug 2021 13:45:38 +0100
Subject: [PATCH] Frontier Auth: Rename `start()` method to something more
 obvious

---
 EDMarketConnector.py | 4 ++--
 companion.py         | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/EDMarketConnector.py b/EDMarketConnector.py
index ab893b50..c58e21f1 100755
--- a/EDMarketConnector.py
+++ b/EDMarketConnector.py
@@ -754,7 +754,7 @@ class AppWindow(object):
         journal_lock.update_lock(self.w)
 
         # (Re-)install log monitoring
-        if not monitor.start(self.w):
+        if not monitor.start_frontier_auth(self.w):
             # LANG: ED Journal file location appears to be in error
             self.status['text'] = _('Error: Check E:D journal file location')
 
@@ -1222,7 +1222,7 @@ class AppWindow(object):
                     logger.info('Monitor: Disable WinSparkle automatic update checks')
 
                 # Can't start dashboard monitoring
-                if not dashboard.start(self.w, monitor.started):
+                if not dashboard.start_frontier_auth(self.w, monitor.started):
                     logger.info("Can't start Status monitoring")
 
             # Export loadout
diff --git a/companion.py b/companion.py
index 4bf77bc6..8f0633c1 100644
--- a/companion.py
+++ b/companion.py
@@ -516,7 +516,7 @@ class Session(object):
         if access_token:
             logger.debug('We have an access_token')
             self.auth = None
-            self.start(access_token)
+            self.start_frontier_auth(access_token)
             return True
 
         else:
@@ -536,7 +536,7 @@ class Session(object):
 
         try:
             logger.debug('Trying authorize with payload from handler')
-            self.start(self.auth.authorize(protocolhandler.lastpayload))  # type: ignore
+            self.start_frontier_auth(self.auth.authorize(protocolhandler.lastpayload))  # type: ignore
             self.auth = None
 
         except Exception:
@@ -545,7 +545,7 @@ class Session(object):
             self.auth = None
             raise  # Bad thing happened
 
-    def start(self, access_token: str) -> None:
+    def start_frontier_auth(self, access_token: str) -> None:
         """Start an oAuth2 session."""
         logger.debug('Starting session')
         self.session = requests.Session()