mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-08 01:01:29 +03:00
Frontend improvement (#27)
* removed redundant dns lookups * frontend now correctly reflects the state of the backend * config.toml is loaded when starting gtk frontend
This commit is contained in:
committed by
Ferdinand Schober
parent
603646c799
commit
06725f4b14
@@ -1,4 +1,4 @@
|
||||
use std::{cell::{Cell, RefCell}, path::PathBuf};
|
||||
use std::{cell::{Cell, RefCell}, os::unix::net::UnixStream};
|
||||
|
||||
use glib::subclass::InitializingObject;
|
||||
use adw::{prelude::*, ActionRow};
|
||||
@@ -16,7 +16,7 @@ pub struct Window {
|
||||
#[template_child]
|
||||
pub client_placeholder: TemplateChild<ActionRow>,
|
||||
pub clients: RefCell<Option<gio::ListStore>>,
|
||||
pub socket_path: RefCell<Option<PathBuf>>,
|
||||
pub stream: RefCell<Option<UnixStream>>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
@@ -54,7 +54,6 @@ impl ObjectImpl for Window {
|
||||
obj.setup_icon();
|
||||
obj.setup_clients();
|
||||
obj.setup_callbacks();
|
||||
obj.connect_stream();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user