Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDL4.0]SDL does not create icons folder in case it was removed #2649

Merged
merged 1 commit into from May 11, 2020
Merged

Conversation

ghost
Copy link

@ghost ghost commented Oct 2, 2018

Fixes #1003

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

Covered by ATF test

Summary

There was a problem if SDL4.0 feature is enabled in .ini file. ' Icons' values is set as AppIconsFolder value. If remove this folder after start SDL and register app with 4th protocol
SDL should creates this folder.

CLA

The check for existence directory of app icons folder
has been added to SetAppIconRequest.
@@ -60,6 +60,14 @@ SetAppIconRequest::SetAppIconRequest(
, is_icons_saving_enabled_(false) {
const std::string path =
application_manager_.get_settings().app_icons_folder();

if (!file_system::DirectoryExists(path)) {
LOG4CXX_WARN(logger_, "App icons folder doesn't exist.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ValeriiMalkov as a suggestion, maybe it's worth to log the unexisting path here too

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mked-luxoft what purpose for this? See next lines, please

@AByzhynar
Copy link
Contributor

@ValeriiMalkov Check grammar in PR description

@iCollin iCollin changed the base branch from develop to fix/icons_folder May 11, 2020 19:54
@iCollin iCollin merged commit 2784205 into smartdevicelink:fix/icons_folder May 11, 2020
iCollin added a commit that referenced this pull request May 11, 2020
… (#3359)

The check for existence directory of app icons folder
has been added to SetAppIconRequest.

Co-authored-by: ValeriiMalkov <[email protected]>

Co-authored-by: ValeriiMalkov <[email protected]>
ydementieiev pushed a commit to LuxoftSDL/sdl_core that referenced this pull request May 18, 2020
…tdevicelink#2649) (smartdevicelink#3359)

The check for existence directory of app icons folder
has been added to SetAppIconRequest.

Co-authored-by: ValeriiMalkov <[email protected]>

Co-authored-by: ValeriiMalkov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants