Skip to content

Commit b0b8a04

Browse files
committed
Fix custom restart message display in control panel
Fixed the issue where custom message for restart options, set through 'self.restart_msg = _('Your custom message')' in case of 'self.needs_restart' set to True was not getting displayed and instead the default 'Changes require restart' was displayed. This was solved by simply passing the 'self.restart_msg' variable in /jarabe/controlpanel/sectionview.py to 'alert.props.msg' variable in /jarabe/controlpanel/gui.py where it is finally displayed.
1 parent a942622 commit b0b8a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jarabe/controlpanel/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def __accept_clicked_cb(self, widget):
372372
self._section_toolbar.cancel_button.set_sensitive(False)
373373
alert = Alert()
374374
alert.props.title = _('Warning')
375-
alert.props.msg = _('Changes require restart')
375+
alert.props.msg = self._section_view.restart_msg
376376

377377
if self._section_view.props.is_cancellable:
378378
icon = Icon(icon_name='dialog-cancel')

0 commit comments

Comments
 (0)