mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
make initial update on widget construct
This commit is contained in:
parent
75b2786375
commit
7061032778
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user