#87 - create in a new pane + fixed some settings stuff

This commit is contained in:
Simon Cambier
2022-09-10 23:01:25 +02:00
parent 3a0b3cbc3a
commit beaa8e5656
6 changed files with 52 additions and 29 deletions

View File

@@ -11,6 +11,7 @@ import { eventBus } from './globals'
import { registerAPI } from '@vanakat/plugin-api'
import api from './api'
import { loadSearchHistory } from './search-history'
import { get } from 'svelte/store'
// let mainWindow: { on: any; off: any } | null = null
// try {
@@ -35,7 +36,7 @@ export default class OmnisearchPlugin extends Plugin {
_registerAPI(this)
if (settings.ribbonIcon) {
if (get(settings).ribbonIcon) {
this.addRibbonButton()
}