Skip to content

Commit 70cc01c

Browse files
committed
Trying to connect: LiveSplit vs LiveSplitOne
1 parent b57229f commit 70cc01c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/splitguides/server/split_server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def event_stream():
7878
except (ConnectionError, TimeoutError):
7979
connected = client.connect()
8080
yield (
81-
f"data: <h2>Trying to connect to livesplit.</h2>"
82-
f"<h3>Make sure Livesplit server is running.</h3>{data}\n\n"
81+
f"data: <h2>Trying to connect to {settings.timer}.</h2>"
82+
f"<h3>Make sure {settings.timer} server is running.</h3>{data}\n\n"
8383
)
8484
else:
8585
if current_note_index != new_index or disconnected:
@@ -104,8 +104,8 @@ def event_stream():
104104
disconnected = True
105105
connected = client.connect()
106106
yield (
107-
f"data: <h2>Trying to connect to livesplit.</h2>"
108-
f"<h3>Make sure Livesplit server is running.</h3>{data}\n\n"
107+
f"data: <h2>Trying to connect to {settings.timer}.</h2>"
108+
f"<h3>Make sure {settings.timer} server is running.</h3>{data}\n\n"
109109
)
110110
time.sleep(0.5)
111111

src/splitguides/ui/main_window.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ def increase_offset(self):
226226
if not self.ls.connected:
227227
self.update_notes(0)
228228
self.ui.statusbar.showMessage(
229-
f"Trying to connect to Livesplit. | Split Offset: {self.split_offset}"
229+
f"Trying to connect to {self.settings.timer}. | Split Offset: {self.split_offset}"
230230
)
231231
else:
232232
self.ui.statusbar.showMessage(
233-
f"Connected to Livesplit. | Split Offset: {self.split_offset}"
233+
f"Connected to {self.settings.timer}. | Split Offset: {self.split_offset}"
234234
)
235235

236236
def decrease_offset(self):
@@ -239,11 +239,11 @@ def decrease_offset(self):
239239
if not self.ls.connected:
240240
self.update_notes(0)
241241
self.ui.statusbar.showMessage(
242-
f"Trying to connect to Livesplit. | Split Offset: {self.split_offset}"
242+
f"Trying to connect to {self.settings.timer}. | Split Offset: {self.split_offset}"
243243
)
244244
else:
245245
self.ui.statusbar.showMessage(
246-
f"Connected to Livesplit. | Split Offset: {self.split_offset}"
246+
f"Connected to {self.settings.timer}. | Split Offset: {self.split_offset}"
247247
)
248248

249249
def start_loops(self):
@@ -483,13 +483,13 @@ def update_status(self, message):
483483

484484
def ls_connect(self):
485485
self.update_status(
486-
f"Trying to connect to Livesplit. | "
486+
f"Trying to connect to {self.main_window.settings.timer}. | "
487487
f"Split Offset: {self.main_window.split_offset}"
488488
)
489489
self.connected = self.client.connect()
490490
if self.connected:
491491
self.update_status(
492-
f"Connected to Livesplit. | "
492+
f"Connected to {self.main_window.settings.timer}. | "
493493
f"Split Offset: {self.main_window.split_offset}"
494494
)
495495

0 commit comments

Comments
 (0)