mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-05 04:31:26 +08:00
Bugfix for message dialog icons
This commit is contained in:
parent
fbee9ba240
commit
faa8f02b08
@ -845,7 +845,7 @@ extern void MessageDialog(struct Application *app, char *callbackID, char *type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Determine what dialog icon we are looking for
|
// Determine what dialog icon we are looking for
|
||||||
id dialogImage;
|
id dialogImage = NULL;
|
||||||
// Look for `name-theme2x` first
|
// Look for `name-theme2x` first
|
||||||
char *themeIcon = concat(dialogIcon, (isDarkMode(app) ? "-dark" : "-light") );
|
char *themeIcon = concat(dialogIcon, (isDarkMode(app) ? "-dark" : "-light") );
|
||||||
if( isRetina(app) ) {
|
if( isRetina(app) ) {
|
||||||
@ -878,7 +878,9 @@ extern void MessageDialog(struct Application *app, char *callbackID, char *type,
|
|||||||
// if (dialogImage != NULL ) printf("Using %s\n", dialogIcon);
|
// if (dialogImage != NULL ) printf("Using %s\n", dialogIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dialogImage != NULL ) {
|
||||||
msg(alert, s("setIcon:"), dialogImage);
|
msg(alert, s("setIcon:"), dialogImage);
|
||||||
|
}
|
||||||
|
|
||||||
// Run modal
|
// Run modal
|
||||||
char *buttonPressed;
|
char *buttonPressed;
|
||||||
|
Loading…
Reference in New Issue
Block a user