mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
UI/Qt: Initialize BrowserWindow fields
Initializing m_current_screen may not be necessary, but the initial value of m_preferred_color_scheme is sent to WebContent, so failing to give it an initializer would cause bugs.
This commit is contained in:
parent
344d6199da
commit
b06d2370c1
Notes:
github-actions[bot]
2025-08-04 12:02:18 +00:00
Author: https://github.com/AtkinsSJ
Commit: b06d2370c1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5697
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 2 deletions
|
@ -175,11 +175,11 @@ private:
|
|||
ByteString navigator_compatibility_mode() const { return m_navigator_compatibility_mode; }
|
||||
void set_navigator_compatibility_mode(ByteString const& navigator_compatibility_mode) { m_navigator_compatibility_mode = navigator_compatibility_mode; }
|
||||
|
||||
QScreen* m_current_screen;
|
||||
QScreen* m_current_screen { nullptr };
|
||||
double m_device_pixel_ratio { 0 };
|
||||
double m_refresh_rate { 60.0 };
|
||||
|
||||
Web::CSS::PreferredColorScheme m_preferred_color_scheme;
|
||||
Web::CSS::PreferredColorScheme m_preferred_color_scheme { Web::CSS::PreferredColorScheme::Auto };
|
||||
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme);
|
||||
|
||||
void devtools_disabled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue