Add some logs
This commit is contained in:
parent
1a9ce4d814
commit
43261bd11f
1 changed files with 3 additions and 0 deletions
|
@ -204,6 +204,7 @@ class Extension(Plugin):
|
||||||
scratch = self.scratches_by_address.get(addr)
|
scratch = self.scratches_by_address.get(addr)
|
||||||
if scratch:
|
if scratch:
|
||||||
if scratch.just_created:
|
if scratch.just_created:
|
||||||
|
self.log.debug("Hiding just created scratch %s", scratch.uid)
|
||||||
await self.run_hide(scratch.uid, force=True)
|
await self.run_hide(scratch.uid, force=True)
|
||||||
scratch.just_created = False
|
scratch.just_created = False
|
||||||
else:
|
else:
|
||||||
|
@ -214,6 +215,7 @@ class Extension(Plugin):
|
||||||
and scratch.conf.get("unfocus") == "hide"
|
and scratch.conf.get("unfocus") == "hide"
|
||||||
and scratch.uid not in self.transitioning_scratches
|
and scratch.uid not in self.transitioning_scratches
|
||||||
):
|
):
|
||||||
|
self.log.debug("hide %s because another client is active", uid)
|
||||||
await self.run_hide(uid, autohide=True)
|
await self.run_hide(uid, autohide=True)
|
||||||
|
|
||||||
async def event_openwindow(self, params) -> None:
|
async def event_openwindow(self, params) -> None:
|
||||||
|
@ -256,6 +258,7 @@ class Extension(Plugin):
|
||||||
if not item:
|
if not item:
|
||||||
self.log.warning("%s is not configured", uid)
|
self.log.warning("%s is not configured", uid)
|
||||||
return
|
return
|
||||||
|
self.log.debug("%s is visible = %s", uid, item.visible)
|
||||||
if item.visible:
|
if item.visible:
|
||||||
await self.run_hide(uid)
|
await self.run_hide(uid)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue