mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 22:34:27 -07:00
This fixes the language dialog
This commit is contained in:
parent
fad25c023e
commit
d4f1bd4345
1 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ namespace Greenshot.Forms
|
|||
private static readonly LogSource Log = new LogSource();
|
||||
private bool _properOkPressed;
|
||||
|
||||
private LanguageDialog()
|
||||
public LanguageDialog()
|
||||
{
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
|
@ -67,12 +67,12 @@ namespace Greenshot.Forms
|
|||
private void FormLoad(object sender, EventArgs e)
|
||||
{
|
||||
// Initialize the Language ComboBox
|
||||
comboBoxLanguage.DisplayMember = "Description";
|
||||
comboBoxLanguage.ValueMember = "Ietf";
|
||||
comboBoxLanguage.DisplayMember = "Value";
|
||||
comboBoxLanguage.ValueMember = "Key";
|
||||
|
||||
// Set datasource last to prevent problems
|
||||
// See: http://www.codeproject.com/KB/database/scomlistcontrolbinding.aspx?fid=111644
|
||||
comboBoxLanguage.DataSource = LanguageLoader.Current.AvailableLanguages;
|
||||
comboBoxLanguage.DataSource = LanguageLoader.Current.AvailableLanguages.ToList();
|
||||
|
||||
var currentLanguage = LanguageLoader.Current.CurrentLanguage;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue