mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement AboutDialog as trait
This commit is contained in:
parent
6f52d198e2
commit
00877ee36f
2 changed files with 9 additions and 28 deletions
|
|
@ -10,6 +10,7 @@ use widget::Widget;
|
|||
use window::Window;
|
||||
|
||||
use crate::Profile;
|
||||
use adw::{prelude::AdwDialogExt, AboutDialog};
|
||||
use gtk::{
|
||||
gio::{Cancellable, File},
|
||||
prelude::{GtkWindowExt, IsA},
|
||||
|
|
@ -59,7 +60,7 @@ impl Browser {
|
|||
// Connect events
|
||||
action.about.connect_activate({
|
||||
let window = window.clone();
|
||||
move || About::new().present(Some(&window.g_box))
|
||||
move || AboutDialog::about().present(Some(&window.g_box))
|
||||
});
|
||||
|
||||
action.close.connect_activate({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue