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:
parent
21e49505d1
commit
394cb80022
@ -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 {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user