mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
add a heap more eventlisteners
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import {
|
||||
CreateCustomShortcutDiv,
|
||||
RemoveCustomShortcutDiv,
|
||||
disableNotificationCollector,
|
||||
enableNotificationCollector,
|
||||
} from "../../SEQTA.js";
|
||||
import { updateAllColors } from "../ui/Colors.js";
|
||||
|
||||
@@ -22,6 +24,10 @@ export default class StorageListener {
|
||||
changes.customshortcuts.newValue
|
||||
);
|
||||
}
|
||||
|
||||
if (changes.notificationcollector) {
|
||||
this.handleNotificationCollectorChange(changes.notificationcollector);
|
||||
}
|
||||
}
|
||||
|
||||
handleSelectedColorChange(newColor) {
|
||||
@@ -32,6 +38,14 @@ export default class StorageListener {
|
||||
}
|
||||
}
|
||||
|
||||
handleNotificationCollectorChange(details) {
|
||||
if (details.newValue) {
|
||||
enableNotificationCollector();
|
||||
} else {
|
||||
disableNotificationCollector();
|
||||
}
|
||||
}
|
||||
|
||||
handleCustomShortcutsChange(oldValue, newValue) {
|
||||
// Check for addition
|
||||
if (newValue.length > oldValue.length) {
|
||||
|
||||
Reference in New Issue
Block a user