File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ TFTPWindow::TFTPWindow(BRect frame, const char *name)
257
257
258
258
v.SetTo (" " ); app_config->Read (" collaps_bottom" , &v, " false" );
259
259
fSplitView ->SetItemCollapsed (1 , (v.ICompare (" true" ) == 0 ) ? true : false );
260
+
261
+ v.SetTo (" " ); app_config->Read (" encoding" , &v, B_TRANSLATE (" None" ));
262
+ BMenuItem* item = fEncodingMenu ->FindItem (v);
263
+ if (item != NULL )
264
+ item->SetMarked (true );
260
265
}
261
266
262
267
@@ -273,6 +278,10 @@ TFTPWindow::~TFTPWindow()
273
278
s.SetTo (" " ); s << fSplitView ->IsItemCollapsed ((bool )0 ); app_config->Write (" collaps_top" , s.String ());
274
279
s.SetTo (" " ); s << fSplitView ->IsItemCollapsed ((bool )1 ); app_config->Write (" collaps_bottom" , s.String ());
275
280
281
+ BMenuItem* item = fEncodingMenu ->FindMarked ();
282
+ if (item != NULL )
283
+ s.SetTo (" " ); s << item->Label (); app_config->Write (" encoding" , s.String ());
284
+
276
285
Clear ();
277
286
}
278
287
You can’t perform that action at this time.
0 commit comments