Merged in master (pull request #68)

--Bug fixes -Error when saving screen on macOS at first time.

Approved-by: Matt Feemster
This commit is contained in:
Michel Mastriani 2023-07-25 02:26:17 +00:00 committed by Matt Feemster
commit d629c629e5
3 changed files with 29 additions and 25 deletions

View File

@ -1,23 +1,23 @@
#!/bin/bash
CONFIG_PATH=~/.config/fractorium
DARK_MAC=~/.config/fractorium/dark_mac.qss
LIGHT_DARK=~/.config/fractorium/lightdark.qss
URANIUM=~/.config/fractorium/uranium.qss
#./fractorium
if [ ! -e "$DARK_LINUX" ] ; then
mkdir -p $CONFIG_PATH
cp dark_mac.qss $CONFIG_PATH
fi
if [ ! -e "$LIGHT_DARK" ] ; then
mkdir -p $CONFIG_PATH
cp lightdark.qss $CONFIG_PATH
fi
if [ ! -e "$URANIUM" ] ; then
mkdir -p $CONFIG_PATH
cp uranium.qss $CONFIG_PATH
fi
#!/bin/bash
CONFIG_PATH=~/.config/fractorium
DARK_MAC=~/.config/fractorium/dark_mac.qss
LIGHT_DARK=~/.config/fractorium/lightdark.qss
URANIUM=~/.config/fractorium/uranium.qss
#./fractorium
if [ ! -e "$DARK_LINUX" ] ; then
mkdir -p $CONFIG_PATH
cp dark_mac.qss $CONFIG_PATH
fi
if [ ! -e "$LIGHT_DARK" ] ; then
mkdir -p $CONFIG_PATH
cp lightdark.qss $CONFIG_PATH
fi
if [ ! -e "$URANIUM" ] ; then
mkdir -p $CONFIG_PATH
cp uranium.qss $CONFIG_PATH
fi

View File

@ -86,7 +86,11 @@ void FractoriumSettings::EnsureDefaults()
OpenImageExt("*.png");
if (SaveImageExt() == "")
SaveImageExt(".png");
#ifndef __APPLE__
SaveImageExt(".png");
#else
SaveImageExt("Png (*.png)");
#endif
if (FinalExt() != "jpg" && FinalExt() != "png" && FinalExt() != "exr"
#ifdef _WIN32

View File

@ -666,7 +666,7 @@ QString QssDialog::OpenFile()
return !filenames.empty() ? filenames[0] : "";
#else
auto filename = QFileDialog::getOpenFileName(this, tr("Open Stylesheet"), /*m_Parent->m_SettingsPath*/ "./", tr("Qss (*.qss)"));
auto filename = QFileDialog::getOpenFileName(this, tr("Open Stylesheet"), m_Parent->m_SettingsPath, tr("Qss (*.qss)"));
return filename.size() > 0 ? filename : "";
#endif
}