fix merge
This commit is contained in:
parent
e940964f84
commit
84c22c8035
@ -280,11 +280,14 @@ class Recipe_Selection(Widget):
|
||||
global noner
|
||||
defaults = self.config.get("recipes_defaults", noner)
|
||||
if csv_path is None:
|
||||
options = QFileDialog.Options()
|
||||
options |= QFileDialog.DontUseNativeDialog
|
||||
csv_path, _ = QFileDialog.getOpenFileName(
|
||||
self,
|
||||
"Esportazione ricette",
|
||||
"ricette.csv",
|
||||
"CSV data (*.csv);;All Files (*)",
|
||||
options=options,
|
||||
)
|
||||
csv_path = str(csv_path)
|
||||
if not len(csv_path):
|
||||
@ -346,11 +349,14 @@ class Recipe_Selection(Widget):
|
||||
# EXPORT RECIPES TABLE TO CSV FILE
|
||||
def export_recipes(self, csv_path=None):
|
||||
if csv_path is None:
|
||||
options = QFileDialog.Options()
|
||||
options |= QFileDialog.DontUseNativeDialog
|
||||
csv_path, _ = QFileDialog.getSaveFileName(
|
||||
self,
|
||||
"Esportazione ricette",
|
||||
"ricette.csv",
|
||||
"CSV data (*.csv);;All Files (*)",
|
||||
options=options,
|
||||
)
|
||||
csv_path = str(csv_path)
|
||||
if not len(csv_path):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user