This commit is contained in:
Mirco Wittrien 2021-01-24 12:57:02 +01:00
parent 7aa80be2e4
commit 888195d4b5
2 changed files with 2 additions and 2 deletions

View File

@ -572,7 +572,7 @@ module.exports = (_ => {
if (!newVersion) return callback(null);
if (pluginName == newName && BDFDB.NumberUtils.getVersionDifference(newVersion[0], window.PluginUpdates.plugins[url].version) > 0.2) {
BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("toast_plugin_force_updated", pluginName), {
type: "warn",
type: "warning",
noPointer: true
});
BDFDB.PluginUtils.downloadUpdate(pluginName, url);

View File

@ -606,7 +606,7 @@ module.exports = (_ => {
onClick: _ => {
let source = settingsPanel.props._node.querySelector(`.input-${key}src ` + BDFDB.dotCN.input).value.trim();
if (!source.length) {
BDFDB.NotificationUtils.toast(`Sound file was removed.`, {type: "warn"});
BDFDB.NotificationUtils.toast(`Sound file was removed.`, {type: "warning"});
successSavedAudio(key, source, source);
}
else if (source.indexOf("http") == 0) BDFDB.LibraryRequires.request(source, (error, response, result) => {