mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
DisplaySettings: Open the wallpaper file picker in the wallpaper path
This small change can indirectly tell you where wallpapers are saved.
This commit is contained in:
parent
7676edfb9b
commit
4d477824e0
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ void BackgroundSettingsWidget::create_frame()
|
||||||
|
|
||||||
auto& button = *find_descendant_of_type_named<GUI::Button>("wallpaper_open_button");
|
auto& button = *find_descendant_of_type_named<GUI::Button>("wallpaper_open_button");
|
||||||
button.on_click = [this](auto) {
|
button.on_click = [this](auto) {
|
||||||
auto path = GUI::FilePicker::get_open_filepath(nullptr, "Select wallpaper from file system.");
|
auto path = GUI::FilePicker::get_open_filepath(nullptr, "Select wallpaper from file system.", "/res/wallpapers");
|
||||||
if (!path.has_value())
|
if (!path.has_value())
|
||||||
return;
|
return;
|
||||||
m_wallpaper_view->selection().clear();
|
m_wallpaper_view->selection().clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue