Change the behaviour of the add layer button
ClosedPublic

Authored by seorasm on Mar 20 2018, 11:11 AM.

Details

Summary

In the layers docker, if more than 1 layer is selected, then
the add layer button now creates a quick group for the selected
layers.

BUG: 385050

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
seorasm created this revision.Mar 20 2018, 11:11 AM
Restricted Application added a subscriber: woltherav. · View Herald TranscriptMar 20 2018, 11:11 AM
seorasm requested review of this revision.Mar 20 2018, 11:11 AM

Haven't tested but looks fine to me.
Though there are some minor issues with the code formatting:

  1. one space between if and the open parenthesis
  2. else on the same line as the previous closing bracket
  3. Why even bother with a local variable singleLayer? Just put the condition in the if clause!
seorasm updated this revision to Diff 30102.Mar 21 2018, 9:08 AM

I've made the small formatting changes suggested.

rempt accepted this revision.Mar 28 2018, 9:22 AM

Yes, this looks correct now. Can you push it yourself?

This revision is now accepted and ready to land.Mar 28 2018, 9:22 AM

I don't think I can push it, since this is my first patch. I'd need a developer account to push wouldn't I?

rempt added a comment.Mar 29 2018, 7:15 AM

Okay. After about three patches, we'll ask you to get a developer account. I'll push this patch. I need your real name for that, though.

Thanks, my name's Seoras Macdonald.

This revision was automatically updated to reflect the committed changes.