From 2fefc6ec651d76774c3d7843665063a972804f97 Mon Sep 17 00:00:00 2001 From: Ada Baumann Date: Sat, 16 Aug 2025 20:05:59 +0200 Subject: [PATCH] dev-2025-08-16T20:05:59+02:00 --- de.AdaLouBaumann.AudioDeviceManager.json | 2 +- src/window.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/de.AdaLouBaumann.AudioDeviceManager.json b/de.AdaLouBaumann.AudioDeviceManager.json index b1bc961..162eb9c 100644 --- a/de.AdaLouBaumann.AudioDeviceManager.json +++ b/de.AdaLouBaumann.AudioDeviceManager.json @@ -44,7 +44,7 @@ { "type" : "git", "url" : "https://gitea.ada-baumann.de/ada/AudioDeviceManager", - "branch" : "main" + "branch" : "dev" } ] } diff --git a/src/window.rs b/src/window.rs index b50053d..4209f35 100644 --- a/src/window.rs +++ b/src/window.rs @@ -42,6 +42,15 @@ mod imp { fn class_init(klass: &mut Self::Class) { 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) {