-
Notifications
You must be signed in to change notification settings - Fork 28
#9 Add confirmation when closing a group #34
Conversation
@@ -1,5 +1,6 @@ | |||
const _ = require("sdk/l10n").get; | |||
const PrefService = require("sdk/preferences/service"); | |||
const chrome = require("chrome"); |
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.
const {Cc, Ci} = require("chrome");
I've fixed code according to your notes. |
@@ -206,6 +206,10 @@ TabManager.prototype = { | |||
return recentlyAddedGroup; | |||
}, | |||
|
|||
getGroupTabCount: function(tabBrowser, groupID) { | |||
return this._storage.getTabIndexesByGroup(tabBrowser, groupID); |
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.
You missed the .length
.
Okay, I've tested it. It... works, but the dialog box is somehwat annoying to me since I usually have a lot of temporary groups. I'd suggest adding a preference to turn off the question. Preferences can be added in After that, let's squash your commits into a single one. In larger PRs, multimple commits may be okay but commits lke "added missing .length" just bloat up the git history. To squash, use |
how can i add new icon? i mean "undo" icon. |
I've added the undo-icon in bebc291. Rebase and you can use |
fa5f6df
to
1a599d1
Compare
I've changed the form of this confirmation. Now it doesn't need so much interacition from user. I've added new pref for this feature so it is configurable. Check this out. |
Is there any problem? |
@@ -4,5 +4,11 @@ const ActionCreators = { | |||
type: "TABGROUPS_RECEIVE", | |||
tabgroups: tabgroups | |||
}; | |||
}, | |||
setGroupCloseTimeout: function(timeout) { |
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.
A little newline here would be nice. :)
Sorry, I've been busy with stuff. I just added some remarks! Thanks for your work so far. |
@xiio any chance you'll finish this? |
Sorry, I've been busy lately. I will fix it till Tuesday (31.05) |
Awesome! 😸 Don't hurry, just wanted to know whether I should take this over myself or not. :) |
- counter removed - default group delay sets to 3 - lint fixes
I've made fixes according to your suggestions. |
@@ -17,14 +17,14 @@ task("cleanup", () => { | |||
|
|||
desc("runs wslint on the built source"); | |||
task("lint", ["build"], {async: true}, () => { | |||
jake.exec([`cd ${DIST_DIR}; eslint .`], { | |||
jake.exec([`cd ${DIST_DIR} & eslint .`], { |
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.
I'm sorry? This runs cd
in the background while running eslint in another directory. What were your intentions here?
Thanks, we're getting close! 👍 Sorry for being kinda picky, but I'd rather stick with a clean and nice code base or we might create a monster that nobody will ever be able to support. |
- dead code elimination
- dead code elimination
All done. Please review... |
Sorry for the insane delay, I got totally sidetracked. Merged as 3a869eb now, thank you! |
i've added confirmation prompt on group closing. When group is empty there is no need to confirm.