Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Remove the ability to switch language to the current language #5287

Merged
merged 3 commits into from
Oct 4, 2013

Conversation

marcelgerber
Copy link
Contributor

The "Restart brackets" button will be disabled if you select the current
lang in the "Switch Language" dialog.

Tested on Windows 8 with Brackets 0.32 master c05cfd5

The "Restart brackets" button will be disabled if you select the current
lang in the "Switch Language" dialog.

Tested on Windows 8 with Brackets 0.32 master c05cfd5
@WebsiteDeveloper
Copy link
Contributor

@SAplayer it this change really necessary?
I think its reasonable to leave the restart button deactivated while no change requiring an actual restart was made.

@marcelgerber
Copy link
Contributor Author

Yes, and currently it isn't.
For example, if you currenty have the system setting, you can still change it to the system setting.
It's not important, but just a little improvement.

@WebsiteDeveloper
Copy link
Contributor

ok i see i just didn't see it happen, but now i can reproduce it when i have for example system standard selected and then select English and then again system standard, then your change comes into action.
I never noticed this, but its good you fixed it.

@ghost ghost assigned JeffryBooher Sep 23, 2013
@marcelgerber
Copy link
Contributor Author

How about merging it?

@WebsiteDeveloper
Copy link
Contributor

i'm not a committer. i assume @JeffryBooher will merge it once he has had time to do a short review.

@@ -151,7 +151,7 @@ define(function (require, exports, module) {

function setLanguage(event) {
locale = $select.val();
$submit.prop("disabled", false);
$submit.prop("disabled", locale === (curLocale === null ? "" : curLocale));
Copy link
Contributor

Choose a reason for hiding this comment

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

use the OR operator here instead of inline IF: locale === (currLocal || "")

Thanks for the tip ;)
@marcelgerber
Copy link
Contributor Author

@JeffryBooher Have you reviewed it?

@JeffryBooher
Copy link
Contributor

@SAplayer sorry been heads down on another story. This looks good. Merging

JeffryBooher added a commit that referenced this pull request Oct 4, 2013
Remove the ability to switch language to the current language
@JeffryBooher JeffryBooher merged commit 4f1f7c0 into adobe:master Oct 4, 2013
@marcelgerber marcelgerber deleted the patch-5 branch October 4, 2013 13:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants