Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Enrich shutdown button #177
I have no strong opinions here. From 3DF experience, I'd say implementing "press-on-drop" within a different
I'm a bit worried that the solution in this PR could lead to confusion when dealing with multiple shutdown handles, not knowing which of them will be pressed on drop and which won't.
My two cents: I’m a fan of using a separate type for representing these kinds of different states. What about a ‘fn press_on_drop(self)’ that consumes self and returns a ShutdownButtonOnDrop (or similar) instead of mutating in place?