mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-25 22:37:02 -04:00
Fixes
This commit is contained in:
parent
acf04bb01d
commit
90d946e7c6
26 changed files with 84 additions and 84 deletions
|
@ -20,7 +20,7 @@ import "./style.css";
|
|||
|
||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import { DataStore } from "@api/index";
|
||||
import { addButton, removeButton } from "@api/MessagePopover";
|
||||
import { addMessagePopoverButton, removeMessagePopoverButton } from "@api/MessagePopover";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import { classes } from "@utils/misc";
|
||||
|
@ -114,7 +114,7 @@ export default definePlugin({
|
|||
if (await DataStore.keys(HolyNoteStore).then(keys => !keys.includes("Main"))) return noteHandler.newNoteBook("Main");
|
||||
if (!noteHandlerCache.has("Main")) await DataStoreToCache();
|
||||
|
||||
addButton("HolyNotes", message => {
|
||||
addMessagePopoverButton("HolyNotes", message => {
|
||||
return {
|
||||
label: "Save Note",
|
||||
icon: NoteButtonPopover,
|
||||
|
@ -127,6 +127,6 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
async stop() {
|
||||
removeButton("HolyNotes");
|
||||
removeMessagePopoverButton("HolyNotes");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue