Skip to content

Modify filecontentsserver to take an output file - #6

Merged
FreddieAkeroyd merged 9 commits into
masterfrom
tpar_2
Aug 10, 2026
Merged

Modify filecontentsserver to take an output file#6
FreddieAkeroyd merged 9 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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think so but can force a read - in reality the master copies never change

{

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.

@FreddieAkeroyd
FreddieAkeroyd merged commit 06157f2 into master Aug 10, 2026
@FreddieAkeroyd
FreddieAkeroyd deleted the tpar_2 branch August 10, 2026 10:23
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