MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / load_volume

Method load_volume

src/config/volume.rs:51–58  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

49
50impl 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}

Callers 1

load_dataFunction · 0.80

Calls 4

get_weakMethod · 0.80
main_volumeMethod · 0.80
bgm_volumeMethod · 0.80
voice_volumeMethod · 0.80

Tested by

no test coverage detected