Bug fixes and slight file moving
All checks were successful
continuous-integration/drone/push Build is passing

- Gradients are no longer hidden when filtered out
- Fixing #1 - Opening files don't work on compiled versions of LogarithmPlotter on MacOS
- Moving python modules to "util" directory for more clarity
- Moving flatpak metainfo to eu.ad5001.LogarithmPlotter repository.
This commit is contained in:
Adsooi 2022-03-05 16:19:47 +01:00
parent 20c910f884
commit 44e39e5265
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
7 changed files with 13 additions and 401 deletions

View file

@ -41,9 +41,10 @@ if path.realpath(path.join(getcwd(), "..")) not in sys_path:
sys_path.append(path.realpath(path.join(getcwd(), "..")))
from LogarithmPlotter import config, native, __VERSION__
from LogarithmPlotter.update import check_for_updates
from LogarithmPlotter.helper import Helper
from LogarithmPlotter import __VERSION__
from LogarithmPlotter.util import config, native
from LogarithmPlotter.util.update import check_for_updates
from LogarithmPlotter.util.helper import Helper
config.init()

View file

@ -85,7 +85,7 @@ Button {
LinearGradient {
anchors.fill: parent
visible: !hidden
//opacity: hidden ? 0.6 : 1
start: Qt.point(0, 0)
end: Qt.point(parent.width, 0)
gradient: Gradient {

View file

@ -28,8 +28,8 @@ from sys import version as sys_version
from urllib.request import urlopen
from urllib.error import HTTPError, URLError
from LogarithmPlotter import config, __VERSION__
from LogarithmPlotter import __VERSION__
from LogarithmPlotter.util import config
class ChangelogFetcher(QRunnable):
def __init__(self, helper):
@ -98,7 +98,12 @@ class Helper(QObject):
QMessageBox.warning(None, 'LogarithmPlotter', QCoreApplication.translate('main','Could not open file "{}":\n{}').format(filename, e), QMessageBox.Ok) # Cannot parse file
else:
QMessageBox.warning(None, 'LogarithmPlotter', QCoreApplication.translate('main','Could not open file: "{}"\nFile does not exist.').format(filename), QMessageBox.Ok) # Cannot parse file
chdir(path.dirname(path.realpath(__file__)))
try:
chdir(path.dirname(path.realpath(__file__)))
except NotADirectoryError as e:
# Triggered on bundled versions of MacOS when it shouldn't. Prevents opening files.
# See more at https://git.ad5001.eu/Ad5001/LogarithmPlotter/issues/1
pass
return data
@Slot(result=str)