DarkSky
DarkSky
Currently all workspace/block apis require transaction, we need call the api with transaction like `block.xxx(&trx, ..)` Consider providing the Workspace/Block type encapsulated by `with_trx`, which includes trx: ``` rust struct...
fix #760 调整截图调用链以优化截图速度 ``` log [2024-03-23][23:29:17][INFO][pot::window] mouse_position: 6µs [2024-03-23][23:29:17][INFO][pot::window] Mouse position: 875, 640 [2024-03-23][23:29:17][INFO][pot::window] Current Monitor: Monitor { name: Some("\\\\.\\DISPLAY1"), size: PhysicalSize { width: 2560, height: 1600 }, position: PhysicalPosition...
当前截图流程如下: 1. 通过`ocr_translate`函数创建截图窗口 2. 截图页加载时 invoke screenshot 命令 3. screenshot 截屏并保存到本地文件夹 4. invoke callback读取本地文件夹中的截图 通过打点可以发现,在第一步耗时可以超过1秒,在快速操作时,实际截图的内容距离实际按下快捷键时屏幕显示的内容不同,会给人明显的迟滞感 
correctly revoke the token after performing sensitive operations related to #6889