Skip to content

Changed quit and close file menu item's names and colocated them to bottom - #7275

Closed
nalin243 wants to merge 6 commits into
audacity:masterfrom
nalin243:create-quit-names
Closed

nalin243 wants to merge 6 commits into
audacity:masterfrom
nalin243:create-quit-names

Conversation

@nalin243

@nalin243 nalin243 commented Sep 8, 2024

Copy link
Copy Markdown
Contributor

Resolves: #6644

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

nalin243 and others added 3 commits September 8, 2024 08:26
Done to better represent what they do
…dows, which not useful for the user, and may interfere with CI tests
@kryksyh

kryksyh commented Sep 8, 2024

Copy link
Copy Markdown
Member

@nalin243 please rebase on the latest master, to get the ci build working.

@nalin243

nalin243 commented Sep 8, 2024

Copy link
Copy Markdown
Contributor Author

@kryksyh

Should I let this be or close and open a new request?

@kryksyh

kryksyh commented Sep 8, 2024 •

Copy link
Copy Markdown
Member

@kryksyh

Should I let this be or close and open a new request?

you can keep this pr 👍

However it would look nicer if you squash all the changes into a single commit

@petersampsonaudacity

petersampsonaudacity commented Sep 8, 2024 •

Copy link
Copy Markdown

Testing on W10 with @nalin243 's latest branch build for this: audacity-win-3.7.0-alpha-20240908+575662c-x64

image

a)The new wording is implemented properly
b) the two commands are now co-located at the bottom of the File menu

But I'm failing to understand why we have (or need) a separator line between the two commands as they are both very closely related in functionality.
@LWinterberg do you agree, Leo?

Comment thread src/menus/FileMenus.cpp
)
),

Section( "Close", Command( wxT("Close"), XXO("&Close Project"), OnClose,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need the Section("Close" bit anymore, you can instead put the Command(...) thing into the Exit section.

Comment thread src/menus/FileMenus.cpp
Comment on lines 557 to 560
// On the Mac, the Exit item doesn't actually go here...wxMac will
// pull it out
// and put it in the Audacity menu for us based on its ID.
/* i18n-hint: (verb) It's item on a menu. */

@LWinterberg LWinterberg Sep 9, 2024 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That said, watch the comments. If the entire section is relocated to the App menu on macOS, you'll need to do some platform specific code via

#ifdef __WXMAC__
  macos code
#else 
  windows/linux code
#endif

"close project" is distinctly a File menu thing, not an app menu thing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not really familiar with mac but what I am understanding is that if I put both 'Quit Audacity' and 'Close Project' in the same section then to make sure that mac doesn't put 'Close Project' in the app menu as well, they would need to be in different sections. Won't that result in the section dividing line still being present in mac then?

@DavidBailes

Copy link
Copy Markdown
Collaborator

But I'm failing to understand why we have (or need) a separator line between the two commands as they are both very closely related in functionality.

@petersampsonaudacity
Standard practice in editors appears to have such commands in separate sections. (Can you find one that doesn't?) Just because two commands both close something, doesn't mean they should be in the same section. Closing a project (perhaps one of many) is quite different from closing the program completely.

@nalin243

nalin243 commented Sep 9, 2024

Copy link
Copy Markdown
Contributor Author

@DavidBailes @LWinterberg

Should I keep it in the same section or let it be then?

@DavidBailes

Copy link
Copy Markdown
Collaborator

@DavidBailes @LWinterberg

Should I keep it in the same section or let it be then?

It's up to @LWinterberg , not me.

@LWinterberg LWinterberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's leave it like this - the additional separator also makes it slightly more difficult to misclick quit instead of close.

@petersampsonaudacity

Copy link
Copy Markdown

I assume this will be merged for 3.7. 0 master and not the impending 3.6.4 ?

@kryksyh

kryksyh commented Sep 24, 2024

Copy link
Copy Markdown
Member

@nalin243 could you rebase your PR on the latest master please?

@nalin243 nalin243 closed this Sep 25, 2024
@nalin243
nalin243 deleted the create-quit-names branch September 25, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In the File Menu Close and Exit would be better co-located

5 participants