-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set editing profile index correctly when deleting profile #1560
Changes from 2 commits
e36bff8
cd8fe40
63bcd81
4d81d24
6a3249c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,6 +261,10 @@ export class ProfileController { | |
// Update profile index | ||
if (settingsProfileIndex === profileIndex) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also what's the difference between There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
this._settingsController.profileIndex = profileCurrentNew; | ||
} else if (settingsProfileIndex > profileIndex) { | ||
this._settingsController.profileIndex = settingsProfileIndex - 1; | ||
} else { | ||
this._settingsController.refreshProfileIndex(); | ||
} | ||
|
||
// Modify settings | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this math accounted for above? Line 231