mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 05:00:06 -05:00
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:
commit
d629c629e5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user