mirror of
https://github.com/alexkay/spek.git
synced 2025-06-06 02:13:31 +03:00
Re-analyse only if the window width has been changed
This commit is contained in:
parent
df52ab83b6
commit
a0ed5d62fd
@ -94,10 +94,14 @@ namespace Spek {
|
||||
queue_draw ();
|
||||
}
|
||||
|
||||
private int prev_width = -1;
|
||||
private override void size_allocate (Gdk.Rectangle allocation) {
|
||||
base.size_allocate (allocation);
|
||||
|
||||
if (file_name != null) {
|
||||
bool width_changed = prev_width != allocation.width;
|
||||
prev_width = allocation.width;
|
||||
|
||||
if (file_name != null && width_changed) {
|
||||
start ();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user