(&self)
| 49 | |
| 50 | impl Executor { |
| 51 | pub(crate) fn load_volume(&self) { |
| 52 | let weak = self.get_weak(); |
| 53 | if let Some(window) = weak.upgrade() { |
| 54 | window.set_main_volume(USER_CONFIG.main_volume()); |
| 55 | window.set_bgm_volume(USER_CONFIG.bgm_volume()); |
| 56 | window.set_voice_volume(USER_CONFIG.voice_volume()); |
| 57 | } |
| 58 | } |
| 59 | } |
no test coverage detected