mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +00:00
PixelPaint: Don't open new images in background tabs
When opening/creating a new image, let's make it the foreground tab.
This commit is contained in:
parent
abc40af809
commit
0c8dce60a2
1 changed files with 1 additions and 0 deletions
|
@ -517,6 +517,7 @@ int main(int argc, char** argv)
|
||||||
if (image->layer_count())
|
if (image->layer_count())
|
||||||
image_editor.set_active_layer(&image->layer(0));
|
image_editor.set_active_layer(&image->layer(0));
|
||||||
|
|
||||||
|
tab_widget.set_active_widget(&image_editor);
|
||||||
image_editor.set_focus(true);
|
image_editor.set_focus(true);
|
||||||
return image_editor;
|
return image_editor;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue