Skip to content

windows: show progress bar in task bar#14090

Closed
alexeyneu wants to merge 1 commit intobitcoin:masterfrom
alexeyneu:master
Closed

windows: show progress bar in task bar#14090
alexeyneu wants to merge 1 commit intobitcoin:masterfrom
alexeyneu:master

Conversation

@alexeyneu
Copy link

@alexeyneu alexeyneu commented Aug 28, 2018

progress bar over task bar thumbnail button
Windows only
untitled 1

@laanwj
Copy link
Member

laanwj commented Aug 28, 2018

120 bucks
(address removed)

thank you for your first time contribution!

however, it is not-done to solicit donations on github, so I've had to remove the address

@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 28, 2018

Note to reviewers: This pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link
Contributor

Choose a reason for hiding this comment

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

you added a fair bit of trailing white space here ;-)

Copy link
Contributor

Choose a reason for hiding this comment

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

this is actually failing your travis build in the lint stage – This diff appears to have added new lines with trailing whitespace.https://travis-ci.org/bitcoin/bitcoin/jobs/421514716#L719

Copy link
Author

Choose a reason for hiding this comment

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

should work if it were only unwanted thing

@alexeyneu
Copy link
Author

linux #ifdef 's were missing. it's reloaded some time ago.
@laanwj ok ,now you can copy-paste my wallet address by double click , line near location , github profile. I bet you wanna to

Copy link
Member

Choose a reason for hiding this comment

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

Don't forget to install clang-format and run the https://github.com/bitcoin/bitcoin/tree/master/contrib/devtools#clang-format-diffpy script to preempt whitespace nitpicking.

Copy link
Author

Choose a reason for hiding this comment

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

looks like travis is stuck. there's \nLF there.

Copy link
Contributor

@donaloconnor donaloconnor left a comment

Choose a reason for hiding this comment

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

Concept ACK but...
I find this code very difficult to follow in its current form. There are a lot of magic numbers, variable names that are confusing etc.

Also should we consider using QWinTaskbarProgress ?

Copy link
Contributor

Choose a reason for hiding this comment

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

What's the purpose of com_b here? This code is very confusing

Copy link
Author

@alexeyneu alexeyneu Aug 28, 2018

Choose a reason for hiding this comment

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

to show that first two windows are not used. i'm not sure ++com_b > 2 will be a lot better. short-circuit evaluation itself is not a problem i guess. atomic_int is just for fun there .

Copy link
Contributor

Choose a reason for hiding this comment

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

IID_ITaskbarList3 is only available on Windows 7+. I think Bitcoin Core supports Win Vista+. This will probably fail to initialise and return a null bhr. We should ensure this succeeds.

Copy link
Author

@alexeyneu alexeyneu Aug 28, 2018

Choose a reason for hiding this comment

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

i'm not sure about vista also. fo' sho' fail , but did you here promise to support it

@laanwj laanwj changed the title progress bar [windows] progress bar in task bar Aug 29, 2018
@promag
Copy link
Contributor

promag commented Aug 30, 2018

Concept ACK and agree with @donaloconnor. The implementation should be decoupled as much as possible.

Also should we consider using QWinTaskbarProgress ?

That requires another dependency QT += winextras (?) and Qt 5.2.

@promag
Copy link
Contributor

promag commented Aug 30, 2018

After seeing QWinTaskbarProgress I think we should use it instead of adding more OS specific code — that's what Qt is for?

@jonasschnelli
Copy link
Contributor

Agree with @promag, using QWinTaskbarProgress makes far more sense to me.

@luke-jr
Copy link
Member

luke-jr commented Aug 30, 2018

@alexeyneu What is your native language?

Can you do this using QWinTaskbarProgress?

@alexeyneu
Copy link
Author

Russian .
No i wont help you on that.
Unrelated to that: my opinion - it's a bad idea

@promag
Copy link
Contributor

promag commented Aug 30, 2018

@alexeyneu you mean it's a bad idea to use QWinTaskbarProgress?

@alexeyneu
Copy link
Author

alexeyneu commented Aug 31, 2018

fo' sho' yoo'll not have this bar outside windows os . You'll mire down with this stuff you offer.

@laanwj laanwj added the Windows label Aug 31, 2018
@alexeyneu
Copy link
Author

it's ready

@fanquake fanquake changed the title [windows] progress bar in task bar windows: show progress bar in task bar Sep 2, 2018
@fanquake
Copy link
Member

fanquake commented Sep 2, 2018

I've updated the PR title and removed unrelated text from the description.

@alexeyneu This is not ready for merge yet. Please update your commit with a more meaningful commit message, and at least fix any linting issues, see here.

However I also agree with the commenters above that using QWinTaskbarProgress would seem like a better idea than the current implementation. So I don't think this will be merged in it's current state. Can you also justify not using it with more information than:

Unrelated to that: my opinion - it's a bad idea

@alexeyneu
Copy link
Author

@fanquake check chat before writing this bot-like stuff
https://botbot.me/freenode/bitcoin-core-dev/2018-09-01/?msg=104023171&page=2

@scravy
Copy link
Contributor

scravy commented Sep 2, 2018

@alexeyneu I don't know what your point is in linking this chatlog. Are you referring to the build which has no errors but the other stages passed?

If you compare that build with your build you will notice that in your build the checks on different platforms have not even been executed. This is because the lint stage failed and it failed correctly. You are messing up white space for no reason and this has been pointed out several times in this pull request already, you are just choosing to neglect these comments.

@alexeyneu
Copy link
Author

@Scavy dont show up here any more

@fanquake
Copy link
Member

fanquake commented Sep 2, 2018

@alexeyneu Given that you've chosen to ignore review comments and constructive criticism, asked for donations multiple times, called people "morons" and told others not to "show up here any more", I'm inclined to close this pull request.

I appreciate there is a language barrier, and this is your first time contributing (which can be tough), so if you want to keep working on this PR, and discuss, in detail, the downsides to using QWinTaskbarProgress, lets do that.

However, keep the comments constructive and on topic, otherwise this PR will be closed.

@sipa
Copy link
Member

sipa commented Sep 2, 2018

@alexeyneu Just to be clear: regarding your earlier comment on IRC, the Bitcoin Core project does not have funds for paying for contributions. If your patch has a price, please close it.

There are multiple ways of being funded to contribute to open source projects, but posting a BTC address and putting a price on a PR is not one of them. You could find someone to sponsor your time, or otherwise employ you to contribute.

Also, you're testing people's patience for all the reasons listed by @fanquake above. We're happy for your contributions, but if you want to see your patch accepted, please don't dismiss review comments from maintainers and others, and be respectful.

@alexeyneu
Copy link
Author

@fanquake This code has a price . Dont lie about asking or digits 120 may appear on your forehead someday.

@promag
Copy link
Contributor

promag commented Sep 2, 2018

Thanks, but no thanks. NACK current implementation and IMO not worth it to have such a specific OS feature unless abstracted by Qt.

@sipa
Copy link
Member

sipa commented Sep 2, 2018

In that case, we have no interest in your code.

@donaloconnor
Copy link
Contributor

NACK.

I helped review and follow the discussions in good faith. I believed it was a language barrior. Plenty of others would be more than happy to contribute something like this and be nice and unconditional about it.

@sipa sipa closed this Sep 2, 2018
@bitcoin bitcoin locked and limited conversation to collaborators Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.