Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/Restore "Show invisibles" setting. #97

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/PText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ void PText::ApplySettings(const BMessage& msg)
if (msg.FindInt32("tabstop", &i) == B_OK)
fTabStops = i;

if (msg.FindBool("show invisibles", &b) == B_OK)
fShowInvisibles = b;

if (gRestoreFont)
{
if (msg.FindBool("show tabs", &b) == B_OK)
Expand Down Expand Up @@ -542,6 +545,8 @@ void PText::CollectSettings(BMessage& msg)
FailOSErr(msg.AddInt32("tabstop", TabStops()));
FailOSErr(msg.AddBool("show tabs", Doc()->ToolBar()->ShowsTabs()));

FailOSErr(msg.AddBool("show invisibles", fShowInvisibles));

FailOSErr(msg.AddInt32("fontkind", fFontKind));
if (fFontKind == kIndividualFont) {
font_family ff;
Expand Down