GifPaste: fix

This commit is contained in:
thororen1234 2026-08-07 00:28:08 -04:00
parent c042986cc9
commit 2c18a3520a
No known key found for this signature in database

View file

@ -16,8 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { isPluginEnabled } from "@api/PluginManager";
import betterGifPicker from "@plugins/betterGifPicker";
import { Devs } from "@utils/constants";
import { insertTextIntoChatInputBox } from "@utils/discord";
import definePlugin from "@utils/types";
@ -40,10 +38,7 @@ export default definePlugin({
handleSelect(gif?: { url: string; }) {
if (gif) {
insertTextIntoChatInputBox(gif.url + " ");
if (!(isPluginEnabled(betterGifPicker.name) && betterGifPicker.settings.store.keepOpen)) {
ExpressionPickerStore.closeExpressionPicker();
}
ExpressionPickerStore.closeExpressionPicker();
}
}
});