Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion amulet_map_editor/api/framework/amulet_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Dict, Union
import traceback
import logging
import sys

from amulet.api.errors import LoaderNoneMatched
from amulet_map_editor.api.wx.ui.select_world import open_level_from_dialog
Expand Down Expand Up @@ -37,11 +38,14 @@ class AmuletUI(wx.Frame):
_level_notebook: AmuletLevelNotebook

def __init__(self, parent):
title = f"Amulet {__version__}"
if not getattr(sys, "frozen", False):
title += " (source)"
wx.Frame.__init__(
self,
parent,
id=wx.ID_ANY,
title=f"Amulet V{__version__}",
title=title,
pos=wx.DefaultPosition,
size=wx.Size(1000, 600),
style=wx.CAPTION
Expand Down
3 changes: 3 additions & 0 deletions amulet_map_editor/api/framework/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from .warning_dialog import WarningDialog
from .licence_dialog import LicenceDialog

# Disable OpenGL_accelerate logging
logging.getLogger("OpenGL.acceleratesupport").setLevel(logging.CRITICAL)

log = logging.getLogger(__name__)

# Uses a conditional so if this breaks a build, we can just delete the file and it will skip the check
Expand Down