Skip to content

Modify filecontentsserver to take an output file - #6

Open
rerpha wants to merge 8 commits into
masterfrom
tpar_2
Open

Modify filecontentsserver to take an output file#6
rerpha wants to merge 8 commits into
masterfrom
tpar_2

Conversation

@rerpha

@rerpha rerpha commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread FileContentsServerApp/src/FileContentsServerDriver.cpp Outdated
Comment thread FileContentsServerApp/Db/FileContentsServer.db
Comment thread FileContentsServerApp/src/FileContentsServerDriver.cpp Outdated
Comment thread FileContentsServerApp/src/FileContentsServerDriver.cpp
@rerpha
rerpha requested a review from FreddieAkeroyd August 7, 2026 09:16
Comment thread FileContentsServerApp/src/FileContentsServerDriver.cpp Outdated
{
std::cout << "Resetting" << std::endl;
logMessage("Reloading from disk");
setStringParam(P_fileContents, m_original_lines_array);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't actually reloading from disk, it is resetting to what was there the first time it loaded from disk. Is that what the users would expect?

{

setStringParam(P_fileContents, value);
if (m_original_lines_array != value)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not quite right, but it may work ok in practice. It is defining "unsaved changes" as different from what was first loaded as opposed to what was last saved. However savedChanges is cleared on a save, so it would only register a false unsavedChanges value if the same contents that had already been saved were sent again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants