mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Fix linux support
This commit is contained in:
@@ -44,7 +44,7 @@ class FileChooserDialog {
|
||||
filters_(filters) {
|
||||
const char* confirm_text = GTK_STOCK_OK;
|
||||
|
||||
if (button_label != NULL)
|
||||
if (!button_label.empty())
|
||||
confirm_text = button_label.c_str();
|
||||
else if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||
confirm_text = GTK_STOCK_SAVE;
|
||||
|
||||
Reference in New Issue
Block a user