mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-19 01:24:12 +01:00
perf: ♻️ Search variable name
This commit is contained in:
parent
a195b7ead7
commit
7c55e50edc
@ -5,7 +5,7 @@
|
||||
circle
|
||||
size="small"
|
||||
:title="$t('common.search')"
|
||||
@click="openPageModal"
|
||||
@click="openSearchModal"
|
||||
>
|
||||
<el-icon size="12">
|
||||
<ElIconSearch />
|
||||
@ -22,18 +22,18 @@ const themeStore = useThemeStore()
|
||||
const activeTab = inject('activeTab')
|
||||
|
||||
watch([() => themeStore.value, () => activeTab.value], () => {
|
||||
closePageModal()
|
||||
closeSearchModal()
|
||||
})
|
||||
|
||||
window.electron.ipcRenderer.on('focus-on-search', (event, ret) => {
|
||||
openPageModal()
|
||||
openSearchModal()
|
||||
})
|
||||
|
||||
function openPageModal() {
|
||||
function openSearchModal() {
|
||||
window.findInPageModal.open({ isDark: themeStore.isDark })
|
||||
}
|
||||
|
||||
function closePageModal() {
|
||||
function closeSearchModal() {
|
||||
window.findInPageModal.close()
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user