Use by default *.{sym,tcl} pattern in insert symbol and component browser

This commit is contained in:
stefan schippers 2024-05-28 14:32:20 +02:00
parent 087aa8c3b9
commit 18a0c5e624
3 changed files with 3 additions and 3 deletions

View File

@ -1459,7 +1459,7 @@ int place_symbol(int pos, const char *symbol_name, double x, double y, short rot
char name1[PATH_MAX];
char tclev = 0;
if(symbol_name==NULL) {
tcleval("load_file_dialog {Choose symbol} *.sym INITIALINSTDIR");
tcleval("load_file_dialog {Choose symbol} *.\\{sym,tcl\\} INITIALINSTDIR");
my_strncpy(name1, tclresult(), S(name1));
} else {
my_strncpy(name1, symbol_name, S(name1));

View File

@ -2862,7 +2862,7 @@ int rstate; /* (reduced state, without ShiftMask) */
}
if((key==XK_Insert && state == ShiftMask) || (key == 'i' && rstate == ControlMask)) /* insert sym */
{
tcleval("load_file_dialog {Insert symbol} {} INITIALINSTDIR 2");
tcleval("load_file_dialog {Insert symbol} *.\\{sym,tcl\\} INITIALINSTDIR 2");
break;
}
if((key==XK_Insert && state == 0) || (key == 'I' && rstate == 0) ) /* insert sym */

View File

@ -345,7 +345,7 @@ void merge_file(int selection_load, const char ext[])
if(selection_load==0)
{
if(!strcmp(ext,"")) {
my_snprintf(tmp, S(tmp), "load_file_dialog {Merge file} {} INITIALLOADDIR");
my_snprintf(tmp, S(tmp), "load_file_dialog {Merge file} {*} INITIALLOADDIR");
tcleval(tmp);
if(!strcmp(tclresult(),"")) return;
my_strncpy(filename, (char *)tclresult(), S(filename));