Skip to content

Commit 4bb310d

Browse files
authored
Merge pull request #241 from awandahl/no_name-general-logging
Update general_logging.py
2 parents bd83080 + 43ee693 commit 4bb310d

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

not1mm/plugins/general_logging.py

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,18 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
183183
buttons_to_send.append(self.esm_dict["HISCALL"])
184184
buttons_to_send.append(self.esm_dict["EXCH"])
185185

186+
# elif self.current_widget in ["other_1", "other_2"]:
187+
# if self.other_2.text() == "" and self.other_1.text() == "":
188+
# self.make_button_green(self.esm_dict["AGN"])
189+
# buttons_to_send.append(self.esm_dict["AGN"])
190+
# else:
191+
# self.make_button_green(self.esm_dict["QRZ"])
192+
# buttons_to_send.append(self.esm_dict["QRZ"])
193+
# buttons_to_send.append("LOGIT")
194+
186195
elif self.current_widget in ["other_1", "other_2"]:
187-
if self.other_2.text() == "" and self.other_1.text() == "":
188-
self.make_button_green(self.esm_dict["AGN"])
189-
buttons_to_send.append(self.esm_dict["AGN"])
190-
else:
191-
self.make_button_green(self.esm_dict["QRZ"])
192-
buttons_to_send.append(self.esm_dict["QRZ"])
193-
buttons_to_send.append("LOGIT")
196+
buttons_to_send.append("LOGIT")
197+
194198

195199
if with_enter is True and bool(len(buttons_to_send)):
196200
for button in buttons_to_send:
@@ -205,14 +209,19 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
205209
self.make_button_green(self.esm_dict["MYCALL"])
206210
buttons_to_send.append(self.esm_dict["MYCALL"])
207211

212+
# elif self.current_widget in ["other_1", "other_2"]:
213+
# if self.other_2.text() == "" and self.other_1.text() == "":
214+
# self.make_button_green(self.esm_dict["AGN"])
215+
# buttons_to_send.append(self.esm_dict["AGN"])
216+
# else:
217+
# self.make_button_green(self.esm_dict["EXCH"])
218+
# buttons_to_send.append(self.esm_dict["EXCH"])
219+
# buttons_to_send.append("LOGIT")
220+
208221
elif self.current_widget in ["other_1", "other_2"]:
209-
if self.other_2.text() == "" and self.other_1.text() == "":
210-
self.make_button_green(self.esm_dict["AGN"])
211-
buttons_to_send.append(self.esm_dict["AGN"])
212-
else:
213-
self.make_button_green(self.esm_dict["EXCH"])
214-
buttons_to_send.append(self.esm_dict["EXCH"])
215-
buttons_to_send.append("LOGIT")
222+
buttons_to_send.append("LOGIT")
223+
224+
216225
if with_enter is True and bool(len(buttons_to_send)):
217226
for button in buttons_to_send:
218227
if button:

0 commit comments

Comments
 (0)