replace watchdog with active polling thread

watchdog does not work on windows. For some
reason file modification events are not
emitted.
Fixed by replacing watchdog with a thread
that polls the modification date ever 0.5s.

Also fixed a bug that the hit view was not
properly destructed.
This commit is contained in:
2025-04-06 09:34:08 +02:00
parent bcd525d787
commit d36724f3e7
7 changed files with 15 additions and 44 deletions

2
.idea/misc.xml generated
View File

@@ -3,5 +3,5 @@
<component name="Black">
<option name="sdkName" value="Python 3.12 (krowlog)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (krowlog)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (krowlog) (2)" project-jdk-type="Python SDK" />
</project>

2
.idea/ravenlog.iml generated
View File

@@ -10,7 +10,7 @@
<excludeFolder url="file://$MODULE_DIR$/icons-not-used" />
<excludeFolder url="file://$MODULE_DIR$/venv312" />
</content>
<orderEntry type="jdk" jdkName="Python 3.12 (krowlog)" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.12 (krowlog) (2)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>