From 7ff6025d93434aa7687e13f1fe2debc75fc94709 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 11 Feb 2020 20:39:26 -0700 Subject: [PATCH] Initialize extra_label in init instead of statically --- sublime/ui/settings.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sublime/ui/settings.py b/sublime/ui/settings.py index 1e0b254..e7c6a56 100644 --- a/sublime/ui/settings.py +++ b/sublime/ui/settings.py @@ -41,11 +41,12 @@ class SettingsDialog(EditFormDialog): 5, ), ] - extra_label = Gtk.Label( - label='* Will be appplied after restarting Sublime Music', - justify=Gtk.Justification.LEFT, - use_markup=True, - ) def __init__(self, *args, **kwargs): + self.extra_label = Gtk.Label( + label='* Will be appplied after restarting Sublime Music', + justify=Gtk.Justification.LEFT, + use_markup=True, + ) + super().__init__(*args, **kwargs)