sidebar: booru: disable broken tag copying

This commit is contained in:
end-4
2025-04-03 17:07:19 +02:00
parent a820d5bdb9
commit 496deb016d
+4 -37
View File
@@ -18,10 +18,11 @@ const USER_CACHE_DIR = GLib.get_user_cache_dir();
Utils.exec(`bash -c 'mkdir -p ${USER_CACHE_DIR}/ags/media/waifus'`); Utils.exec(`bash -c 'mkdir -p ${USER_CACHE_DIR}/ags/media/waifus'`);
Utils.exec(`bash -c 'rm ${USER_CACHE_DIR}/ags/media/waifus/*'`); Utils.exec(`bash -c 'rm ${USER_CACHE_DIR}/ags/media/waifus/*'`);
const TagButton = (command, chatEntry) => Button({ const TagButton = (command, entry) => Button({
className: 'sidebar-chat-chip sidebar-chat-chip-action txt txt-small', className: 'sidebar-chat-chip sidebar-chat-chip-action txt txt-small',
onClicked: () => { chatEntry.buffer.text += `${command} ` }, // Interactions disabled for now because they aren't working
setup: setupCursorHover, // onClicked: () => { entry.buffer.text += `${command} ` },
// setup: setupCursorHover,
label: command, label: command,
}); });
@@ -481,31 +482,6 @@ export const BooruView = (chatEntry) => Scrollable({
} }
}); });
const booruTags = Revealer({
revealChild: false,
transition: 'crossfade',
transitionDuration: userOptions.animations.durationLarge,
child: Box({
className: 'spacing-h-5',
children: [
Scrollable({
vscroll: 'never',
hscroll: 'automatic',
hexpand: true,
child: Box({
className: 'spacing-h-5',
children: [
TagButton('hololive'),
TagButton('yuri'),
TagButton('thighhighs'),
]
})
}),
Box({ className: 'separator-line' }),
]
})
});
export const booruCommands = Box({ export const booruCommands = Box({
className: 'spacing-h-5', className: 'spacing-h-5',
setup: (self) => { setup: (self) => {
@@ -513,15 +489,6 @@ export const booruCommands = Box({
self.pack_end(CommandButton('+'), false, false, 0); self.pack_end(CommandButton('+'), false, false, 0);
self.pack_end(CommandButton('/mode konachan', 'Konachan'), false, false, 0); self.pack_end(CommandButton('/mode konachan', 'Konachan'), false, false, 0);
self.pack_end(CommandButton('/mode yandere', 'yande.re'), false, false, 0); self.pack_end(CommandButton('/mode yandere', 'yande.re'), false, false, 0);
self.pack_start(Button({
className: 'sidebar-chat-chip-toggle',
setup: setupCursorHover,
label: getString('Tags →'),
onClicked: () => {
booruTags.revealChild = !booruTags.revealChild;
}
}), false, false, 0);
self.pack_start(booruTags, true, true, 0);
} }
}); });