Skip to content
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

Asking for confirmation, when trying to open more than one tagged thread at once #382

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

tradzik
Copy link

@tradzik tradzik commented Jan 16, 2015

@eMBee
Copy link
Contributor

eMBee commented Jan 17, 2015

looks good, one suggestion though, it is possible to count the messages in the threads too? it is quite a difference if i open 10 threads with 1 message each (which causes 10 messages to be opened) vs opening 5 threads with 10 messages each (which causes 50 messages being opened)

@eMBee
Copy link
Contributor

eMBee commented Jan 18, 2015

almost, please show the number of messages and threads: do you want to open 5 threads with 50 messages?

@eMBee
Copy link
Contributor

eMBee commented Jan 18, 2015

total_msg_no = 0
threads.each { |t| total_msg_no += t.size }
if BufferManager.ask_yes_or_no "Are you sure, you want to open #{tagged_no} threads with #{total_msg_no} messages (y/n)?"
threads.each { |t| select t }
Copy link
Member

Choose a reason for hiding this comment

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

inconsistent tab width

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.

3 participants