dev-2025-08-16T20:05:59+02:00

This commit is contained in:
Ada Baumann (she/her) 2025-08-16 20:05:59 +02:00
parent c8c6581b0a
commit 2fefc6ec65
2 changed files with 10 additions and 1 deletions

View File

@ -44,7 +44,7 @@
{ {
"type" : "git", "type" : "git",
"url" : "https://gitea.ada-baumann.de/ada/AudioDeviceManager", "url" : "https://gitea.ada-baumann.de/ada/AudioDeviceManager",
"branch" : "main" "branch" : "dev"
} }
] ]
} }

View File

@ -42,6 +42,15 @@ mod imp {
fn class_init(klass: &mut Self::Class) { fn class_init(klass: &mut Self::Class) {
klass.bind_template(); klass.bind_template();
// Create async action to create new device and add to action group "win"
klass.install_action_async(
"win.new-device",
None,
|window, _, _| async move {
println!("New Device");
}
);
} }
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) { fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {