Add correct file extension to screenshot.
This commit is contained in:
parent
539c706459
commit
0d1c1aeed9
|
@ -149,8 +149,8 @@ void commit(const entry_type &entry)
|
||||||
|
|
||||||
if (!entry.screenshot_filepath.empty())
|
if (!entry.screenshot_filepath.empty())
|
||||||
{
|
{
|
||||||
// TODO: Add real file extension.
|
const string extension{fs::path(entry.screenshot_filepath).extension()};
|
||||||
fs::copy(entry.screenshot_filepath, basename + ".image");
|
fs::copy(entry.screenshot_filepath, basename + extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add files.
|
// Add files.
|
||||||
|
|
Reference in New Issue
Block a user