Skip to content

Commit 8ac6a64

Browse files
Merge pull request #70 from Adithyan-KV/labelbug
Fix bug where label disappears on dragging in invalid filetype
2 parents e7e7834 + d29e14d commit 8ac6a64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DropArea.vala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ namespace Resizer {
5757
this.add_overlay (drag_label);
5858
}
5959
public void show_preview(File[] files) throws Error {
60-
drag_label.visible = false;
61-
drag_label.no_show_all = true;
6260

6361
var file = files[0];
6462
var pixbuf = new Gdk.Pixbuf.from_file_at_scale (
@@ -67,6 +65,10 @@ namespace Resizer {
6765
500,
6866
true
6967
);
68+
69+
drag_label.no_show_all = true;
70+
drag_label.visible = false;
71+
7072
image.set_from_pixbuf (pixbuf);
7173
image.height_request = pixbuf.height;
7274
image.width_request = pixbuf.width;

0 commit comments

Comments
 (0)