make initial update on widget construct

This commit is contained in:
yggverse 2024-12-08 04:47:17 +02:00
parent 75b2786375
commit 7061032778

View File

@ -86,6 +86,9 @@ impl Widget {
} }
}); });
// Make initial update
widget_action.update.activate();
// Return new activated `Self` // Return new activated `Self`
Self { Self {
// action, // action,
@ -127,7 +130,6 @@ impl Widget {
/// Show dialog with new preset /// Show dialog with new preset
pub fn present(&self, parent: Option<&impl IsA<gtk::Widget>>) { pub fn present(&self, parent: Option<&impl IsA<gtk::Widget>>) {
self.form.update();
self.alert_dialog.present(parent) self.alert_dialog.present(parent)
} }
} }