Permalink
Comparing changes
Open a pull request
- 1 commit
- 1 file changed
- 0 commit comments
- 1 contributor
Commits on Mar 20, 2018
Unified
Split
Showing
with
9 additions
and 0 deletions.
- +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(); | ||
| } | ||
|
|
||