{"action":"created","issue":{"url":"https://api.github.com/repos/CadQuery/CQ-editor/issues/105","repository_url":"https://api.github.com/repos/CadQuery/CQ-editor","labels_url":"https://api.github.com/repos/CadQuery/CQ-editor/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/CadQuery/CQ-editor/issues/105/comments","events_url":"https://api.github.com/repos/CadQuery/CQ-editor/issues/105/events","html_url":"https://github.com/CadQuery/CQ-editor/pull/105","id":533241268,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ5MzQ5Nzky","number":105,"title":"File open dialog starts in current script's directory","user":{"login":"marcus7070","id":50230945,"node_id":"MDQ6VXNlcjUwMjMwOTQ1","avatar_url":"https://avatars1.githubusercontent.com/u/50230945?v=4","gravatar_id":"","url":"https://api.github.com/users/marcus7070","html_url":"https://github.com/marcus7070","followers_url":"https://api.github.com/users/marcus7070/followers","following_url":"https://api.github.com/users/marcus7070/following{/other_user}","gists_url":"https://api.github.com/users/marcus7070/gists{/gist_id}","starred_url":"https://api.github.com/users/marcus7070/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcus7070/subscriptions","organizations_url":"https://api.github.com/users/marcus7070/orgs","repos_url":"https://api.github.com/users/marcus7070/repos","events_url":"https://api.github.com/users/marcus7070/events{/privacy}","received_events_url":"https://api.github.com/users/marcus7070/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-05T09:54:29Z","updated_at":"2019-12-05T10:07:23Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/CadQuery/CQ-editor/pulls/105","html_url":"https://github.com/CadQuery/CQ-editor/pull/105","diff_url":"https://github.com/CadQuery/CQ-editor/pull/105.diff","patch_url":"https://github.com/CadQuery/CQ-editor/pull/105.patch"},"body":"When CQ-editor starts, it auto loads the previous script you were working on (great feature BTW). When opening the open file dialog for the first time, it will not point at that script's directory. This feels unintuitive and I also had to click a bunch of folders every time I started CQ-editor.\r\n\r\nI've taken the directory from `Editor.filename` and supplied it to the file open dialog as the starting directory. \r\n\r\nTested if `Editor.filename` is `''` and `pathlib.Path('').parent` produces `'.'`, which opens up the current working directory, so that case is handled properly. "},"comment":{"url":"https://api.github.com/repos/CadQuery/CQ-editor/issues/comments/562060337","html_url":"https://github.com/CadQuery/CQ-editor/pull/105#issuecomment-562060337","issue_url":"https://api.github.com/repos/CadQuery/CQ-editor/issues/105","id":562060337,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MjA2MDMzNw==","user":{"login":"codecov[bot]","id":22429695,"node_id":"MDM6Qm90MjI0Mjk2OTU=","avatar_url":"https://avatars2.githubusercontent.com/in/254?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov%5Bbot%5D","html_url":"https://github.com/apps/codecov","followers_url":"https://api.github.com/users/codecov%5Bbot%5D/followers","following_url":"https://api.github.com/users/codecov%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codecov%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codecov%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codecov%5Bbot%5D/repos","events_url":"https://api.github.com/users/codecov%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codecov%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-12-05T10:07:22Z","updated_at":"2019-12-05T10:07:22Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=h1) Report\n> Merging [#105](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=desc) into [master](https://codecov.io/gh/CadQuery/CQ-editor/commit/1cee3f4ff90b13e1dbc54bfa22e9286c3e05b10e?src=pr&el=desc) will **increase** coverage by `0.02%`.\n> The diff coverage is `100%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/CadQuery/CQ-editor/pull/105/graphs/tree.svg?width=650&token=TVjBHI112H&height=150&src=pr)](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff             @@\n##           master     #105      +/-   ##\n==========================================\n+ Coverage    86.5%   86.53%   +0.02%     \n==========================================\n  Files          16       16              \n  Lines        1223     1225       +2     \n  Branches      138      138              \n==========================================\n+ Hits         1058     1060       +2     \n  Misses        136      136              \n  Partials       29       29\n```\n\n\n| [Impacted Files](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [cq\\_editor/utils.py](https://codecov.io/gh/CadQuery/CQ-editor/pull/105/diff?src=pr&el=tree#diff-Y3FfZWRpdG9yL3V0aWxzLnB5) | `87.5% <100%> (ø)` | :arrow_up: |\n| [cq\\_editor/widgets/editor.py](https://codecov.io/gh/CadQuery/CQ-editor/pull/105/diff?src=pr&el=tree#diff-Y3FfZWRpdG9yL3dpZGdldHMvZWRpdG9yLnB5) | `96.33% <100%> (+0.06%)` | :arrow_up: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=footer). Last update [1cee3f4...bfcb87f](https://codecov.io/gh/CadQuery/CQ-editor/pull/105?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov"}}