Commit 0dc02b43 authored by Dan Pascu's avatar Dan Pascu

Simplified font adjusting code

parent 975c11d2
......@@ -1318,8 +1318,6 @@ class AudioSessionWidget(base_class, ui_class):
font = self.latency_label.font()
font.setPointSizeF(self.status_label.fontInfo().pointSizeF() - 1)
self.latency_label.setFont(font)
font = self.packet_loss_label.font()
font.setPointSizeF(self.status_label.fontInfo().pointSizeF() - 1)
self.packet_loss_label.setFont(font)
self.duration_label.setMinimumWidth(self.duration_label.fontMetrics().width('0:00:00') + 1) # prevent the status from shifting left/right when duration changes
self.mute_button.type = LeftSegment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment