mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
WidgetGallery: Make custom cursors visible only in the cursors tab
Prior to this change, the selected cursor stayed changed throughout the app, even after switching tabs, which didn't look quite right.
This commit is contained in:
parent
2867d93115
commit
657409736a
Notes:
sideshowbarker
2024-07-18 01:25:30 +09:00
Author: https://github.com/krkk
Commit: 657409736a
Pull-request: https://github.com/SerenityOS/serenity/pull/10837
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ GalleryWidget::GalleryWidget()
|
|||
|
||||
m_cursors_tableview->on_activation = [&](const GUI::ModelIndex& index) {
|
||||
auto icon_index = index.model()->index(index.row(), MouseCursorModel::Column::Bitmap);
|
||||
window()->set_cursor(icon_index.data().as_bitmap());
|
||||
m_cursors_tableview->set_override_cursor(NonnullRefPtr<Gfx::Bitmap>(icon_index.data().as_bitmap()));
|
||||
};
|
||||
|
||||
auto& icons_tab = tab_widget.add_tab<GUI::Widget>("Icons");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue