Add person editor dialog

This commit is contained in:
Elias Projahn 2020-09-28 15:02:19 +02:00
parent c67cefb38a
commit 9fcab517e4
6 changed files with 200 additions and 11 deletions

View file

@ -9,8 +9,10 @@ extern crate diesel_migrations;
use gio::prelude::*;
use glib::clone;
use std::cell::RefCell;
use std::rc::Rc;
mod database;
mod dialogs;
mod window;
use window::Window;
@ -26,7 +28,7 @@ fn main() {
)
.expect("Failed to initialize GTK application!");
let window = RefCell::new(None::<Window>);
let window: RefCell<Option<Rc<Window>>> = RefCell::new(None);
app.connect_activate(clone!(@strong app => move |_| {
let mut window = window.borrow_mut();