winecfg: Disable the desktop option when configuring a specific application.

This commit is contained in:
Alexandre Julliard 2006-03-29 13:49:36 +02:00
parent 1e1a708e8a
commit d74a62cfd7
1 changed files with 12 additions and 1 deletions

View File

@ -53,7 +53,18 @@ static void update_gui_for_desktop_mode(HWND dialog) {
WINE_TRACE("\n");
updating_ui = TRUE;
if (current_app)
{
disable(IDC_ENABLE_DESKTOP);
disable(IDC_DESKTOP_WIDTH);
disable(IDC_DESKTOP_HEIGHT);
disable(IDC_DESKTOP_SIZE);
disable(IDC_DESKTOP_BY);
return;
}
enable(IDC_ENABLE_DESKTOP);
/* do we have desktop mode enabled? */
if (reg_key_exists(config_key, keypath("X11 Driver"), "Desktop"))
{