checkbox sounds, app launch sounds
This commit is contained in:
@@ -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!
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user