microscope-cockpit / cockpit

Cockpit is a microscope graphical user interface. It is a flexible and easy to extend platform aimed at life scientists using bespoke microscopes.
https://microscope-cockpit.org
GNU General Public License v3.0
37 stars 27 forks source link

Small bits of old code that my IDE picked up #833

Closed thomasmfish closed 1 year ago

thomasmfish commented 2 years ago

I've made a branch of some changes here that are small and could easily be cherry-picked in if that'd be helpful. Nothing that has caused me issues but a few things there could break error reporting.

carandraug commented 2 years ago

I've ~merged~ cherry-picked four of those but I don't think the other two are quite right. I'll leave a comment on the individual commits.

thomasmfish commented 2 years ago

Great, thanks!

thomasmfish commented 1 year ago

I just noticed this was still open - it can be closed, right?

iandobbie commented 1 year ago

What happened about the two which David thought were "not quite right"? But yes please do close the issue.

carandraug commented 1 year ago

I'm not sure what happened here. I though I had left comments on the commits that I didn't cherry-pick but I can't find them anymore. So I'm adding them here:

The four commits that I picked were:

Closing as fixed.

carandraug commented 1 year ago

I've found the comments now (they're on the commit but only if you access through the URLs https://github.com/MicronOxford/cockpit/commit/commit-hash - if you try https://github.com/[thomasmfish](https://github.com/thomasmfish)/cockpit/commit/same-commit-hash they're not there).

Anyway, there was a small detail this comment https://github.com/MicronOxford/cockpit/commit/1c5ec9c1c35439b90152bd20d5876d061d18f87a#commitcomment-89525659 about replacing file with open which I missed. I've now also merged it.