Skip to content

Commit 04e89ed

Browse files
committed
FIX: Config dialog always displayed User scripts
The config dialog always showed the User scripts, but kept the radio button selection at the last user selection. To reproduce: open config dialog, select machine scripts, close config dialog open config dialog again, user scripts are shown in the tree but machine scripts still selected in radio button Reported by octabun
1 parent eaeea0b commit 04e89ed

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

PythonScript/src/ShortcutDlg.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@ void ShortcutDlg::doDialog()
4848

4949

5050
clearScripts();
51-
populateScripts(m_userScriptDir);
51+
52+
if (BST_CHECKED == ::SendMessage(::GetDlgItem(_hSelf, IDC_RADMACHINE), BM_GETCHECK, 0, 0))
53+
{
54+
populateMachineScripts();
55+
}
56+
else
57+
{
58+
populateUserScripts();
59+
}
60+
5261
populateCurrentItems();
5362
nonScriptSelected();
5463

0 commit comments

Comments
 (0)