mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-02-17 18:59:19 +01:00
perf: ♻️ Search interaction
This commit is contained in:
parent
091d5035dd
commit
a195b7ead7
@ -16,9 +16,12 @@ export default () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
remote.getCurrentWebContents().stopFindInPage('clearSelection')
|
||||||
|
|
||||||
if (!findInPage) {
|
if (!findInPage) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return findInPage.closeFindWindow()
|
return findInPage.closeFindWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,6 +65,8 @@ export default () => {
|
|||||||
: {}),
|
: {}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log('findInPage', findInPage)
|
||||||
|
|
||||||
return findInPage
|
return findInPage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useThemeStore } from '$/store'
|
import { useThemeStore } from '$/store/theme/index.js'
|
||||||
|
|
||||||
const themeStore = useThemeStore()
|
const themeStore = useThemeStore()
|
||||||
|
|
||||||
@ -32,6 +32,7 @@ window.electron.ipcRenderer.on('focus-on-search', (event, ret) => {
|
|||||||
function openPageModal() {
|
function openPageModal() {
|
||||||
window.findInPageModal.open({ isDark: themeStore.isDark })
|
window.findInPageModal.open({ isDark: themeStore.isDark })
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePageModal() {
|
function closePageModal() {
|
||||||
window.findInPageModal.close()
|
window.findInPageModal.close()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user