mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
ResolutionRow: initialize the DPI label
This commit is contained in:
@@ -56,6 +56,7 @@ class ResolutionRow(Gtk.ListBoxRow):
|
||||
xres, __ = resolution.resolution
|
||||
minres = resolution.minimum
|
||||
maxres = resolution.maximum
|
||||
self.dpi_label.set_text("{} DPI".format(xres))
|
||||
|
||||
with self.scale.handler_block(self._scale_handler):
|
||||
self.scale.props.adjustment.configure(xres, minres, maxres, 50, 50, 0)
|
||||
|
||||
Reference in New Issue
Block a user