[studio] Fix to properly copy file that has the same name as deleted file
All checks were successful
Build / build (push) Successful in 1m24s
All checks were successful
Build / build (push) Successful in 1m24s
This commit is contained in:
@ -3,6 +3,8 @@
|
|||||||
* Add ability to remember recent projects in config
|
* Add ability to remember recent projects in config
|
||||||
* Add navigation support (back and forward)
|
* Add navigation support (back and forward)
|
||||||
* Fix file deletion to close file even if not active
|
* Fix file deletion to close file even if not active
|
||||||
|
* Fix file copy to work when creating a copy with the name of a previously
|
||||||
|
deleted file
|
||||||
* PaletteEditor: Add RGB key shortcuts for focusing color channels
|
* PaletteEditor: Add RGB key shortcuts for focusing color channels
|
||||||
* PaletteEditor: Add color preview to color editor
|
* PaletteEditor: Add color preview to color editor
|
||||||
* PaletteEditor: Make RGB key shortcuts work when color channel inputs are
|
* PaletteEditor: Make RGB key shortcuts work when color channel inputs are
|
||||||
|
@ -101,8 +101,8 @@ ox::Result<ox::FileStat> Project::stat(ox::StringViewCR path) const noexcept {
|
|||||||
ox::Error Project::copyItem(ox::StringViewCR src, ox::StringViewCR dest) noexcept {
|
ox::Error Project::copyItem(ox::StringViewCR src, ox::StringViewCR dest) noexcept {
|
||||||
OX_REQUIRE_M(buff, loadBuff(src));
|
OX_REQUIRE_M(buff, loadBuff(src));
|
||||||
OX_REQUIRE(id, keel::regenerateUuidHeader(buff));
|
OX_REQUIRE(id, keel::regenerateUuidHeader(buff));
|
||||||
OX_RETURN_ERROR(writeBuff(dest, buff));
|
|
||||||
createUuidMapping(m_kctx, dest, id);
|
createUuidMapping(m_kctx, dest, id);
|
||||||
|
OX_RETURN_ERROR(writeBuff(dest, ox::BufferView{buff} + keel::K1HdrSz));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user