Skip to content

Commit

Permalink
fix(Dialogs): use named variables when creating dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
t00m committed May 10, 2024
1 parent 5221e05 commit 452d56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MiAZ/frontend/desktop/widgets/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ def __init__(self, app, parent, title, key1, key2, width=-1, height=-1):
lblTitle = self.factory.create_label(title)
header.set_title_widget(lblTitle)
self.set_titlebar(header)
btnSave = self.factory.create_button('', 'Save', self.on_dialog_save)
btnSave = self.factory.create_button(icon_name='', title='Save', callback=self.on_dialog_save)
btnSave.get_style_context().add_class(class_name='suggested-action')
btnCancel = self.factory.create_button('', 'Cancel', self.on_dialog_cancel)
btnCancel = self.factory.create_button(icon_name='', title='Cancel', callback=self.on_dialog_cancel)
btnCancel.get_style_context().add_class(class_name='destructive-action')
self.boxButtons = Gtk.CenterBox()
self.boxButtons.set_halign(Gtk.Align.END)
Expand Down

0 comments on commit 452d56d

Please sign in to comment.