Commit 87382ea2 authored by eric pellegrini's avatar eric pellegrini

Merge branch 'bugfix-show_file_filter_on_macos' into 'develop'

Added system option for displaying file filter widget on MacOS

See merge request !28
parents 5059a1e2 f7bdce1f
Pipeline #4236 passed with stages
in 32 minutes and 13 seconds
......@@ -2,11 +2,17 @@ import glob
import os
import platform
import wx
from MDANSE import PLATFORM
from MDANSE.Externals.pubsub import pub as PUBLISHER
# Hack for the (in)famous "(python:865): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent."
if platform.dist()[0].lower() == "ubuntu":
os.environ["UBUNTU_MENUPROXY"] = "0"
if PLATFORM.name == "macos":
wx.SystemOptions.SetOption("osx.openfiledialog.always-show-types","1")
from MDANSE import REGISTRY
from MDANSE.GUI.Plugins.DataPlugin import DataPlugin
......@@ -38,4 +44,4 @@ for data in REGISTRY["input_data"].values():
"label" : " ".join("".split("_")).capitalize(),
"ancestor" : ['empty_data']}
kls = type("%sPlugin" % data.__name__, (DataPlugin,), attrs)
REGISTRY[data._type] = kls
\ No newline at end of file
REGISTRY[data._type] = kls
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment