ResolutionRow: initialize the DPI label

This commit is contained in:
Jente Hidskes
2017-08-16 23:15:52 +02:00
parent 182f44ed40
commit 191cbf6d36

View File

@@ -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)