Start Frame class.
This commit is contained in:
13
Buffer.cc
13
Buffer.cc
@@ -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();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user