Start Frame class.

This commit is contained in:
2023-10-14 23:28:43 -07:00
parent 8edcba0f88
commit a00d358b15
8 changed files with 233 additions and 30 deletions

View File

@@ -66,11 +66,14 @@ Buffer::Buffer(std::filesystem::path fPath)
this->name = fPath.filename().string();
this->cursor = Cursor();
this->file = OptFile(fPath.string());
if (this->Exists()) {
/// \todo Should I signal an error here, or is it
/// okay for this to be a best-effort thing?
this->status = this->Refresh();
}
// N.B. I am leaving this in to show that I thought about it, but
// it's the wrong choice. A Frame should call Refresh on a buffer
// when it's ready to load it.
// if (this->Exists()) {
// /// \todo Should I signal an error here, or is it
// /// okay for this to be a best-effort thing?
// this->status = this->Refresh();
// }
}