Files
oak-gpui/crates
张小白 c260f7d5ac Refactor Windows platform implementation (#11393)
This aligns the Windows platform implementation with a code style
similar to macOS platform, eliminating most of the `Cell`s and
`Mutex`es. This adjustment facilitates potential future porting to a
multi-threaded implementation if required.

Overall, this PR made the following changes: it segregated all member
variables in `WindowsPlatform` and `WindowsWindow`, grouping together
variables that remain constant throughout the entire app lifecycle,
while placing variables that may change during app runtime into
`RefCell`.

Edit: 
During the code refactoring process, a bug was also fixed.

**Before**: 
Close window when file has changed, nothing happen:


https://github.com/zed-industries/zed/assets/14981363/0bcda7c1-808c-4b36-8953-a3a3365a314e

**After**:
Now `should_close` callback is properly handled


https://github.com/zed-industries/zed/assets/14981363/c8887b72-9a0b-42ad-b9ab-7d0775d843f5


Release Notes:

- N/A
2024-05-07 09:49:39 -07:00
..
2024-05-03 12:50:42 -07:00
2024-04-23 15:33:09 -06:00
2024-05-05 15:02:50 +02:00
2024-04-23 13:31:21 -04:00
2024-04-11 15:36:35 -06:00
2024-04-26 13:25:25 -06:00
2024-04-30 23:31:59 -06:00
2024-05-03 12:50:42 -07:00
2024-05-03 12:50:42 -07:00
2024-05-05 15:02:50 +02:00
2024-04-26 13:25:25 -06:00
2024-05-06 12:58:11 +02:00
2024-05-05 15:02:50 +02:00
2024-05-03 12:50:42 -07:00
2024-04-11 23:09:12 +02:00
2024-05-05 15:02:50 +02:00
2024-04-15 14:21:52 +02:00
2024-05-03 12:50:42 -07:00
2024-05-07 09:35:52 -06:00