robvdpol / RaceControl

Race Control is a standalone, open source F1TV client for Windows, written in C# on the .NET platform.
GNU General Public License v3.0
1.19k stars 95 forks source link

[FEATURE] Re-Enable Resizable Window when exiting fullscreen #240 #361

Closed Spexxel closed 2 years ago

Spexxel commented 2 years ago

Implement #240

Issue in short: When you start a stream the resizable window is enabled. But if you leave fullscreen it would still be disabled.

Changes: Changed the if statement to assign the ResizeMode.CanResize if the provided param is null. (Which also fixes assigning a null to a non-nullable property)

Tested with single and multiple running streams. Only the described issue/feature is affected. Moving to corner will still set ResizeMode to NoResize