hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
319 stars 55 forks source link

Move duplicated code to vnr_window_resize() function #115

Open qarkai opened 2 years ago

qarkai commented 2 years ago

I've noticed that same code was changed twice in 1f1cc05505ef06a8a8551031833414266e54ce8f. This patch turns it to function to avoid possible double work in the future.