now able to set sounds again
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { Guild } from "./guild.js";
|
import { Guild } from "./guild.js";
|
||||||
import { Direct } from "./direct.js";
|
import { Direct } from "./direct.js";
|
||||||
|
import { Voice } from "./audio.js";
|
||||||
import { User } from "./user.js";
|
import { User } from "./user.js";
|
||||||
import { Fullscreen } from "./fullscreen.js";
|
import { Fullscreen } from "./fullscreen.js";
|
||||||
import { setTheme } from "./login.js";
|
import { setTheme } from "./login.js";
|
||||||
@@ -700,6 +701,14 @@ class Localuser {
|
|||||||
setTheme();
|
setTheme();
|
||||||
}, themes, { defaultIndex: themes.indexOf(localStorage.getItem("theme")) });
|
}, themes, { defaultIndex: themes.indexOf(localStorage.getItem("theme")) });
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
const sounds = Voice.sounds;
|
||||||
|
tas.addSelect("Notification sound:", _ => {
|
||||||
|
Voice.setNotificationSound(sounds[_]);
|
||||||
|
}, sounds, { defaultIndex: sounds.indexOf(Voice.getNotificationSound()) }).watchForChange(_ => {
|
||||||
|
Voice.noises(sounds[_]);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
settings.show();
|
settings.show();
|
||||||
}
|
}
|
||||||
|
@@ -725,6 +725,14 @@ class Localuser{
|
|||||||
setTheme();
|
setTheme();
|
||||||
},themes,{defaultIndex:themes.indexOf(localStorage.getItem("theme"))});
|
},themes,{defaultIndex:themes.indexOf(localStorage.getItem("theme"))});
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
const sounds=Voice.sounds;
|
||||||
|
tas.addSelect("Notification sound:",_=>{
|
||||||
|
Voice.setNotificationSound(sounds[_]);
|
||||||
|
},sounds,{defaultIndex:sounds.indexOf(Voice.getNotificationSound())}).watchForChange(_=>{
|
||||||
|
Voice.noises(sounds[_]);
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
settings.show();
|
settings.show();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user