mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Made resize work, cleaned up code so it should be easier to port the changes to 2.x
This commit is contained in:
parent
5cb877f8c8
commit
aced477cef
8 changed files with 446 additions and 474 deletions
|
@ -509,7 +509,7 @@ namespace Greenshot.Drawing {
|
|||
bool canReset = false;
|
||||
foreach (var drawableContainer in this) {
|
||||
var container = (DrawableContainer) drawableContainer;
|
||||
if (container.hasDefaultSize) {
|
||||
if (container.HasDefaultSize) {
|
||||
canReset = true;
|
||||
}
|
||||
}
|
||||
|
@ -519,7 +519,7 @@ namespace Greenshot.Drawing {
|
|||
item.Click += delegate {
|
||||
foreach (var drawableContainer in this) {
|
||||
var container = (DrawableContainer) drawableContainer;
|
||||
if (!container.hasDefaultSize) {
|
||||
if (!container.HasDefaultSize) {
|
||||
continue;
|
||||
}
|
||||
Size defaultSize = container.DefaultSize;
|
||||
|
@ -538,7 +538,7 @@ namespace Greenshot.Drawing {
|
|||
bool hasMenu = false;
|
||||
foreach (var drawableContainer in this) {
|
||||
var container = (DrawableContainer) drawableContainer;
|
||||
if (!container.hasContextMenu) {
|
||||
if (!container.HasContextMenu) {
|
||||
continue;
|
||||
}
|
||||
hasMenu = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue