Skip to content

Commit 3b0eeb5

Browse files
committed
Redundent Comments
1 parent 71a2d1a commit 3b0eeb5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ui/host_editor.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ def __init__(self):
121121
self.revert_button.set_sensitive(False)
122122
except Exception:
123123
pass
124-
# No global actionbar anymore
125-
126-
# No global banner/buttons in MainWindow anymore
127124

128125
try:
129126
key_ctrl = Gtk.EventControllerKey.new()
@@ -416,9 +413,7 @@ def _connect_buttons(self):
416413
self.test_row.connect("activated", lambda r: self._on_test_connection(None))
417414
try:
418415
if getattr(self, "unsaved_banner", None) is not None:
419-
self.unsaved_banner.connect(
420-
"button-clicked", lambda *_: self._on_save_clicked(None)
421-
)
416+
self.unsaved_banner.connect("button-clicked", lambda *_: self._on_save_clicked(None))
422417
except Exception:
423418
pass
424419
try:
@@ -450,6 +445,7 @@ def _connect_header_buttons(self):
450445
except Exception:
451446
pass
452447

448+
453449
def _on_add_clicked(self, button):
454450
"""Handle add host button click."""
455451
try:
@@ -1392,7 +1388,6 @@ def _copy_text_to_clipboard(self, text: str) -> bool:
13921388
pass
13931389
try:
13941390
import subprocess as _sub
1395-
13961391
for cmd in [
13971392
["wl-copy"],
13981393
["xclip", "-selection", "clipboard"],

0 commit comments

Comments
 (0)