+ skip_non_party_members
This commit is contained in:
+12
-7
@@ -1,7 +1,8 @@
|
||||
import os
|
||||
import sys
|
||||
import toml
|
||||
|
||||
CFG_VERSION = '0.1'
|
||||
CFG_VERSION = '0.2'
|
||||
|
||||
default = """
|
||||
[window]
|
||||
@@ -10,21 +11,25 @@ height = 200
|
||||
font-size = '10px'
|
||||
opacity = 0.5
|
||||
|
||||
[app]
|
||||
skip_non_party_players = true
|
||||
|
||||
[config]
|
||||
# do not change
|
||||
version = '%s'
|
||||
""" % (CFG_VERSION)
|
||||
|
||||
_script_path = None
|
||||
|
||||
|
||||
def set_script_path(path):
|
||||
global _script_path
|
||||
_script_path = path
|
||||
|
||||
_script_path = sys.argv[0] # pyinstaller creates tmpdir for python files, thus this is the way to get executable path
|
||||
_config = None
|
||||
|
||||
def config():
|
||||
global _script_path
|
||||
global _config
|
||||
|
||||
if _config:
|
||||
return _config
|
||||
|
||||
conf_file = os.path.join(os.path.dirname(
|
||||
_script_path), 'albion-online-stats.cfg')
|
||||
|
||||
|
||||
+1
-4
@@ -6,9 +6,6 @@ from PySide2.QtWidgets import QMessageBox
|
||||
|
||||
import libmeter
|
||||
|
||||
from config import set_script_path
|
||||
set_script_path(sys.argv[0]) # pyinstaller creates tmpdir for python files, thus this is the way to get executable path
|
||||
|
||||
from config import config
|
||||
from main import MainWidget
|
||||
from engine import initialize
|
||||
@@ -42,7 +39,7 @@ if __name__ == "__main__":
|
||||
|
||||
current_version, latest_version = (current_version(), latest_version())
|
||||
|
||||
if current_version != latest_version:
|
||||
if latest_version and current_version != latest_version:
|
||||
msg = QMessageBox()
|
||||
msg.setIcon(QMessageBox.Warning)
|
||||
msg.setWindowTitle("Update available!")
|
||||
|
||||
Reference in New Issue
Block a user