KraigM / HomeBridgeController

Provides a simplified UI for controlling your HomeBridge
88 stars 7 forks source link

Upload Config : Always keep backup #4

Closed epheterson closed 8 years ago

epheterson commented 8 years ago

Since a program is doing the updating anyway, it'd be nice if the previous version, or several previous versions, were maintained on disk in the event the user hit 'Upload Config' by accident and lost stuff.

KraigM commented 8 years ago

Good point. I had thought about keeping a backup simple backup just in case, but I really like the idea of versioning it.

KraigM commented 8 years ago

Im thinking about hooking into Mac's document system. That way we can offload keeping track of the versions, providing ui to revert, proper integration into mac, etc.

epheterson commented 8 years ago

Sounds like the best way to go for sure! Do you get version history UI for free as well?

KraigM commented 8 years ago

I believe so

KraigM commented 8 years ago

From what I understand, I just teach what the UI is for the document and create a custom document type and it pretty much does it from there. I think the tricky part will be finding a way to integrate it but disable all the active features (install updates, upload, etc).

KraigM commented 8 years ago

Completed and will be in next release (0.4.0)

KraigM commented 8 years ago

This one was a doozy... 800+ lines of code...

But it works and its pretty awesome :grinning:

KraigM commented 8 years ago

Version 0.4.0 has been released