improve code quality. code block is cleaner. ugly hack was leaving leading space
This commit is contained in:
parent
6d07ec5a0a
commit
d9d527b2ef
|
@ -210,9 +210,10 @@ class ChangeStatusMessageDialog:
|
||||||
self.window = self.xml.get_widget('change_status_message_dialog')
|
self.window = self.xml.get_widget('change_status_message_dialog')
|
||||||
if show:
|
if show:
|
||||||
uf_show = helpers.get_uf_show(show)
|
uf_show = helpers.get_uf_show(show)
|
||||||
|
title_text = _('%s Status Message') % uf_show
|
||||||
else:
|
else:
|
||||||
uf_show = ''
|
title_text = _('Status Message')
|
||||||
self.window.set_title(_('%s Status Message') % uf_show)
|
self.window.set_title()
|
||||||
|
|
||||||
message_textview = self.xml.get_widget('message_textview')
|
message_textview = self.xml.get_widget('message_textview')
|
||||||
self.message_buffer = message_textview.get_buffer()
|
self.message_buffer = message_textview.get_buffer()
|
||||||
|
|
Loading…
Reference in New Issue