Fix some comments and remove German ones

This commit is contained in:
coderkun 2024-11-03 10:55:52 +01:00
parent bcfd17a8ae
commit 99958eabc9
5 changed files with 4 additions and 14 deletions

View file

@ -542,8 +542,6 @@ class Client(Base):
def _playpause(self):
"""Action: Perform the real play/pause command."""
#status = self._parse_dict(self._call('status'))
#if 'state' in status:
if self._state == 'play':
self._call('pause')
else:
@ -653,7 +651,7 @@ class Client(Base):
return future
def _add_action_future(self, future, method, *args):
"""Add an action to the action list based on a futre."""
"""Add an action to the action list based on a future."""
self._logger.debug("add action future %r (%r)", method.__name__, args)
action = (future, method, args)
self._actions.put(action)
@ -787,7 +785,7 @@ class Client(Base):
# Read actual bytes
self._read_bytes(data_view, binary)
offset += binary
# Read line break to complete previous repsonse
# Read line break to complete previous response
self._read_line()
# Read command completion
end = self._read_line()

View file

@ -69,6 +69,7 @@ class CoverPanel(Gtk.Overlay):
return self.toolbar
def set_selected(self, selected):
"""The cover panel does not use selections"""
pass
def on_cover_box_pressed(self, widget, npress, x, y):
@ -203,9 +204,6 @@ class CoverPanel(Gtk.Overlay):
self.cover_spinner.stop()
def _resize_image(self):
"""Diese Methode skaliert das geladene Bild aus dem Pixelpuffer
auf die Größe des Fensters unter Beibehalt der Seitenverhältnisse
"""
# Get size
size_width = self.cover_stack.get_size(Gtk.Orientation.HORIZONTAL)
size_height = self.cover_stack.get_size(Gtk.Orientation.HORIZONTAL)

View file

@ -431,9 +431,6 @@ class LibraryPanel(Adw.Bin):
self.emit('close-standalone')
def _resize_standalone_image(self):
"""Diese Methode skaliert das geladene Bild aus dem Pixelpuffer
auf die Größe des Fensters unter Beibehalt der Seitenverhältnisse
"""
# Get size
size_width = self.standalone_stack.get_width()
size_height = self.standalone_stack.get_height()

View file

@ -239,9 +239,6 @@ class PlaylistPanel(Adw.Bin):
self.emit('close-standalone')
def _resize_standalone_image(self):
"""Diese Methode skaliert das geladene Bild aus dem Pixelpuffer
auf die Größe des Fensters unter Beibehalt der Seitenverhältnisse
"""
# Get size
size_width = self.standalone_stack.get_width()
size_height = self.standalone_stack.get_height()

View file

@ -31,7 +31,7 @@ class ServerPanel(Adw.Bin):
stats_dbplaytime = Gtk.Template.Child()
stats_playtime = Gtk.Template.Child()
stats_uptime = Gtk.Template.Child()
# Audio ouptut devices widgets
# Audio output devices widgets
output_devices = Gtk.Template.Child()
def __init__(self, **kwargs):