helloSystem / Menu

Global menu bar written in Qt
43 stars 14 forks source link

Rework Shutdown #87

Closed alphamodh0 closed 1 year ago

alphamodh0 commented 2 years ago

Why put in the System Menu the options: Shut Down, Restart and Log Out if all the options will appear again?

It seems to me that it should be possible to do without confirmation, or to put a single option called "Session", because all three options do the same. System Menu: Menu Off Response of three options: Screen

probonopd commented 2 years ago

Also, maybe instead of using a separate Shutdown application we should probably do this inside Menu. (But then, how would we bring up the dialog if it is triggered not by the Menu but e.g., by the power button? Maybe a separate application is not the worst idea after all.)

alphamodh0 commented 2 years ago

Maybe we can use the off dialogue only when the button is pressed.

probonopd commented 2 years ago

We also need to ask the user for confirmation when one of the menu items were chosen. Otherwise it would log out without giving the user a chance to rethink this potentially dangerous action, as all changes to unsaved documents will be lost.

alphamodh0 commented 2 years ago

We also need to ask the user for confirmation when one of the menu items were chosen. Otherwise it would log out without giving the user a chance to rethink this potentially dangerous action, as all changes to unsaved documents will be lost.

Then we must implement the system that have "Guindows" and "MakOS" where they warn if the user has not saved a document or is executing a task that can be destroyed by the restart.

probonopd commented 2 years ago

I don't know how to implement this.

kettle-7 commented 2 years ago

Have one menu item saying 'leave' or something?

kettle-7 commented 2 years ago

Oh, that, might have to dig into the kde code

alphamodh0 commented 2 years ago

Oh, that, might have to dig into the kde code

Should be there. 👍🏼.

probonopd commented 2 years ago

Not sure I'd even want that:

kettle-7 commented 2 years ago

afaik it sends a close button signal and checks which windows are still open

louies0623 commented 2 years ago

I think Apple split them up to let users know clearly that they know that they are doing hemp. Think about it, when there are other users logged in, you need to log out of the current user, the button to log out Next to it is to restart or shut down. If you happen to sneeze and press to restart or shut down, then the other users will lose all the data (if it is hard work and has not been saved, then worse).

louies0623 commented 1 year ago

@probonopd How about pretending to delete it and modify it like this. Think

louies0623 commented 1 year ago

If the bottom three options lead to the same window, then merge it and change it to "Leave"

probonopd commented 1 year ago

Works as designed, to make it easier for switchers from the Mac.

louies0623 commented 1 year ago

Maybe I used a proprietary screen, it doesn't matter there are open source ones here. Selection_001