mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
WidgetGallery+MouseSettings: Use LexicalPath::basename()
This commit is contained in:
parent
9ddd2fdcc5
commit
d1846867cd
2 changed files with 5 additions and 8 deletions
|
@ -60,8 +60,7 @@ void MouseCursorModel::invalidate()
|
|||
|
||||
Cursor cursor;
|
||||
cursor.path = move(path);
|
||||
auto filename_split = cursor.path.split('/');
|
||||
cursor.name = filename_split[3];
|
||||
cursor.name = LexicalPath::basename(cursor.path);
|
||||
|
||||
// FIXME: Animated cursor bitmaps
|
||||
auto cursor_bitmap = Gfx::Bitmap::try_load_from_file(cursor.path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue