checkbox sounds, app launch sounds

This commit is contained in:
Aleksander
2026-01-06 17:09:39 +01:00
parent 46ab3ce960
commit 51dbb6f14d
13 changed files with 85 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ use wgui::{
use wlx_common::{dash_interface::BoxDashInterface, desktop_finder::DesktopEntry};
use crate::{
frontend::{FrontendTask, FrontendTasks},
frontend::{FrontendTask, FrontendTasks, SoundType},
settings::SettingsIO,
};
@@ -335,6 +335,8 @@ impl View {
"APPLICATION_STARTED",
)));
params.frontend_tasks.push(FrontendTask::PlaySound(SoundType::Launch));
(*params.on_launched)();
// we're done!

View File

@@ -1,7 +1,7 @@
use std::rc::Rc;
use crate::{
frontend::{FrontendTask, FrontendTasks},
frontend::{FrontendTask, FrontendTasks, SoundType},
util::{
cached_fetcher::{self, CoverArt},
steam_utils::{self, AppID, AppManifest},
@@ -178,6 +178,7 @@ impl View {
.push(FrontendTask::PushToast(Translation::from_translation_key(
"GAME_LAUNCHED",
)));
self.frontend_tasks.push(FrontendTask::PlaySound(SoundType::Launch));
}
Err(e) => {
self