1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-13 17:34:08 +02:00

Fix custom CSS and sound notification settings not applying on launch

This commit is contained in:
chylex 2021-12-25 19:09:22 +01:00
parent 21e49505d1
commit 394cb80022
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
3 changed files with 6 additions and 3 deletions
Browser
Resources/Content

View File

@ -16,12 +16,14 @@
using TweetDuck.Dialogs.Settings;
using TweetDuck.Management;
using TweetDuck.Plugins;
using TweetDuck.Resources;
using TweetDuck.Updates;
using TweetDuck.Utils;
using TweetLib.Core.Features.Plugins;
using TweetLib.Core.Features.Plugins.Events;
using TweetLib.Core.Systems.Updates;
#if DEBUG
using TweetDuck.Resources;
#endif
namespace TweetDuck.Browser {
sealed partial class FormBrowser : Form {

View File

@ -45,7 +45,7 @@
}
loadModules().then(([ successes, total ]) => {
if ("$TD" in window && "notifyModulesLoaded" in window.$TD) {
if ("$TD" in window && "onModulesLoaded" in window.$TD) {
notifyModulesLoaded(window.$TD);
}

View File

@ -1,4 +1,5 @@
import { $TDX } from "../api/bridge.js";
import { isAppReady } from "../api/ready.js";
import { replaceFunction } from "./globals/patch_functions.js";
/**
@ -35,7 +36,7 @@ export default function() {
};
replaceFunction(HTMLAudioElement.prototype, "play", function(func, args) {
if (!$TDX.muteNotifications) {
if (!$TDX.muteNotifications && isAppReady()) {
func.apply(this, args);
}
});