Skip to content

Commit

Permalink
Fixed crash from title buttons in media viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Mar 2, 2023
1 parent 0b40cce commit 8e851cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Telegram/SourceFiles/platform/platform_overlay_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ object_ptr<Ui::AbstractButton> DefaultOverlayWidgetHelper::Buttons::create(
case Control::Minimize: return &st::mediaviewTitleMinimize;
case Control::Maximize: return &st::mediaviewTitleMaximize;
case Control::Close: return &st::mediaviewTitleClose;
case Control::OnTop: return &st::mediaviewTitleClose;
}
Unexpected("Value in DefaultOverlayWidgetHelper::Buttons::create.");
}();
Expand Down

0 comments on commit 8e851cd

Please sign in to comment.