fix: only use window scale in children (#5833)
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
- Bugfix: Fixed a crash relating to Lua HTTP. (#5800)
|
- Bugfix: Fixed a crash relating to Lua HTTP. (#5800)
|
||||||
- Bugfix: Fixed a crash that could occur on Linux and macOS when clicking "Install" from the update prompt. (#5818)
|
- Bugfix: Fixed a crash that could occur on Linux and macOS when clicking "Install" from the update prompt. (#5818)
|
||||||
- Bugfix: Fixed missing word wrap in update popup. (#5811)
|
- Bugfix: Fixed missing word wrap in update popup. (#5811)
|
||||||
- Bugfix: Fixed tabs not scaling to the default scale when changing the scale from a non-default value. (#5794)
|
- Bugfix: Fixed tabs not scaling to the default scale when changing the scale from a non-default value. (#5794, #5833)
|
||||||
- Dev: Highlight checks now use non-capturing groups for the boundaries. (#5784)
|
- Dev: Highlight checks now use non-capturing groups for the boundaries. (#5784)
|
||||||
- Dev: Updated Conan dependencies. (#5776)
|
- Dev: Updated Conan dependencies. (#5776)
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,13 @@ namespace chatterino {
|
|||||||
BaseWidget::BaseWidget(QWidget *parent, Qt::WindowFlags f)
|
BaseWidget::BaseWidget(QWidget *parent, Qt::WindowFlags f)
|
||||||
: QWidget(parent, f)
|
: QWidget(parent, f)
|
||||||
, theme(getApp()->getThemes())
|
, theme(getApp()->getThemes())
|
||||||
, scale_(this->scale())
|
|
||||||
{
|
{
|
||||||
|
auto *baseWidget = dynamic_cast<BaseWidget *>(this->window());
|
||||||
|
if (baseWidget && baseWidget != this)
|
||||||
|
{
|
||||||
|
this->scale_ = baseWidget->scale_;
|
||||||
|
}
|
||||||
|
|
||||||
this->signalHolder_.managedConnect(this->theme->updated, [this]() {
|
this->signalHolder_.managedConnect(this->theme->updated, [this]() {
|
||||||
this->themeChangedEvent();
|
this->themeChangedEvent();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user