mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
Make the UI update properly when the user adds/removes drives.
This commit is contained in:
parent
d070d8fb46
commit
b889e29eb6
1 changed files with 7 additions and 1 deletions
|
@ -51,6 +51,7 @@ static BOOL updating_ui = FALSE;
|
|||
static struct drive* current_drive;
|
||||
|
||||
static void get_etched_rect(HWND dialog, RECT *rect);
|
||||
static void update_controls(HWND dialog);
|
||||
|
||||
static void set_advanced(HWND dialog)
|
||||
{
|
||||
|
@ -297,6 +298,8 @@ void on_add_click(HWND dialog)
|
|||
SendDlgItemMessage(dialog, IDC_LIST_DRIVES, LB_SETCURSEL, c, 0);
|
||||
|
||||
SetFocus(GetDlgItem(dialog, IDC_LIST_DRIVES));
|
||||
|
||||
update_controls(dialog);
|
||||
}
|
||||
|
||||
void on_remove_click(HWND dialog)
|
||||
|
@ -324,9 +327,12 @@ void on_remove_click(HWND dialog)
|
|||
SendDlgItemMessage(dialog, IDC_LIST_DRIVES, LB_SETCURSEL, item, 0); /* previous item */
|
||||
|
||||
SetFocus(GetDlgItem(dialog, IDC_LIST_DRIVES));
|
||||
|
||||
update_controls(dialog);
|
||||
}
|
||||
|
||||
void update_controls(HWND dialog) {
|
||||
static void update_controls(HWND dialog)
|
||||
{
|
||||
char *path;
|
||||
uint type;
|
||||
char *label;
|
||||
|
|
Loading…
Reference in a new issue