Cleanup unused code (#625)

This commit is contained in:
Jas Singh
2024-12-25 01:18:27 -08:00
committed by GitHub
parent 6c14efd04b
commit 99b173bc58
2 changed files with 6 additions and 46 deletions

View File

@@ -81,14 +81,8 @@ export default ({
<revealer
revealChild={false}
setup={(self: Revealer) => {
App.connect('window-toggled', (app) => {
const targetWindow = app.get_window(name);
const visibility = targetWindow?.get_visible();
if (targetWindow?.name === name) {
self.set_reveal_child(visibility ?? false);
}
App.connect('window-toggled', (_, window) => {
self.set_reveal_child(window.visible);
});
}}
transitionType={transition}