Skip to content

Commit

Permalink
update: removed single click-through option
Browse files Browse the repository at this point in the history
since vanish does the same there's no need to have it available and it can lead to confusion
  • Loading branch information
Enubia committed Jan 1, 2024
1 parent 9dd1563 commit cbba964
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"eslint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"search.exclude": {
".eslintcache": true
Expand Down
19 changes: 10 additions & 9 deletions electron/main/trayIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@ export default class TrayIcon {
}
},
},
{
label: 'Disable Click-Through',
type: 'normal',
click: () => {
log.info('Disabling Click-Through');
this.store.set('savedWindowState.isClickThrough', false);
// should not be needed anymore, the previous menu item should be enough
// {
// label: 'Disable Click-Through',
// type: 'normal',
// click: () => {
// log.info('Disabling Click-Through');
// this.store.set('savedWindowState.isClickThrough', false);

this.overlay.setIgnoreMouseEvents(false);
},
},
// this.overlay.setIgnoreMouseEvents(false);
// },
// },
{
label: 'Exit',
click: () => {
Expand Down
12 changes: 6 additions & 6 deletions src/components/header/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<li v-if="!isSettingsOpen">
<a @click="showSettings">{{ t('header.dropdown.settings') }}</a>
</li>
<li v-if="!isSettingsOpen">
<!-- <li v-if="!isSettingsOpen">
<a @click="setClickThrough">{{ t('header.dropdown.set-click-through') }}</a>
</li>
</li> -->
<li>
<a @click="toggleTheme">{{ t('header.dropdown.toggle-color-theme') }}</a>
</li>
Expand Down Expand Up @@ -94,10 +94,10 @@ const toggleTheme = () => {
ipcRenderer.send(IpcEvent.Rerender, 'child');
};
const setClickThrough = () => {
document.querySelector('details')?.removeAttribute('open');
ipcRenderer.send(IpcEvent.SetClickThrough);
};
// const setClickThrough = () => {
// document.querySelector('details')?.removeAttribute('open');
// ipcRenderer.send(IpcEvent.SetClickThrough);
// };
const emitVanish = () => {
document.querySelector('details')?.removeAttribute('open');
Expand Down
1 change: 1 addition & 0 deletions src/components/settings/KapChat.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- eslint-disable @stylistic/max-len -->
<template>
<div id="default-channel">
<label for="default-channel-input">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const showCSSEditor = ref(false);
const showJSEditor = ref(false);
const showUpdates = ref(false);
const showView = <T = 'general' | 'options' | 'css' | 'js' | 'updates',>(view: T) => {
const showView = <T = 'general' | 'options' | 'css' | 'js' | 'updates'>(view: T) => {
switch (view) {
case 'general':
document.querySelector('#options')?.removeAttribute('active');
Expand Down
2 changes: 0 additions & 2 deletions src/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// eslint-disable-next-line max-len
// eslint-disable-next-line unused-imports/no-unused-imports, @typescript-eslint/no-unused-vars
import { DefineLocaleMessage } from 'vue-i18n';

import { MessageSchema } from '../i18n/schema';
Expand Down

0 comments on commit cbba964

Please sign in to comment.