Windows: Use the application icon for the sidebar
authorJocelyn Turcotte <jturcotte@woboq.com>
Fri, 11 Aug 2017 15:19:02 +0000 (17:19 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 15 Aug 2017 11:37:33 +0000 (13:37 +0200)
commit251f1d0047971f54f4167a9db326fea763a61462
tree4633c7319ab81286da539efb7264c0d946fefa10
parent1c3127e43b01b872008c2f5b58fc3b30916de3e9
Windows: Use the application icon for the sidebar

By setting the icon in Desktop.ini of the root folder, this adds the icon
both when browsing the folder directly and to the sidebar shortcut.

To avoid overwriting any user setting that could exist in Desktop.ini,
only do this if the file doesn't exist. Editing .ini files on Windows
isn't trivial and isn't worth it given that this file won't exist most
of the time.

Fixes #2446
src/libsync/utility_win.cpp