Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/FTPWindow.cpp
@@ -257,6 +257,11 @@ TFTPWindow::TFTPWindow(BRect frame, const char *name)

v.SetTo(""); app_config->Read("collaps_bottom", &v, "false");
fSplitView->SetItemCollapsed(1, (v.ICompare("true") == 0) ? true : false);

v.SetTo(""); app_config->Read("encoding", &v, B_TRANSLATE("None"));
BMenuItem* item = fEncodingMenu->FindItem(v);
if (item != NULL)
item->SetMarked(true);
}


@@ -273,6 +278,10 @@ TFTPWindow::~TFTPWindow()
s.SetTo(""); s << fSplitView->IsItemCollapsed((bool)0); app_config->Write("collaps_top", s.String());
s.SetTo(""); s << fSplitView->IsItemCollapsed((bool)1); app_config->Write("collaps_bottom", s.String());

BMenuItem* item = fEncodingMenu->FindMarked();
if (item != NULL)
s.SetTo(""); s << item->Label(); app_config->Write("encoding", s.String());

Clear();
}

No commit comments for this range

You can’t perform that action at this time.