From 2cbf39cba273bc7075b29c8b6043d9b191d12bbe Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 17 May 2024 15:56:10 +0800 Subject: [PATCH] disable ui resize on macos --- koboldcpp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index c138a42aa..44ff01991 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -1556,7 +1556,6 @@ def show_new_gui(): root = ctk.CTk() root.geometry(str(windowwidth) + "x" + str(windowheight)) root.title("KoboldCpp v"+KcppVersion) - root.resizable(True,True) gtooltip_box = None gtooltip_label = None @@ -1593,7 +1592,11 @@ def show_new_gui(): root.geometry(str(windowwidth) + "x" + str(windowheight) + str(lastpos)) ctk.set_widget_scaling(smallratio) - root.bind("", on_resize) + if sys.platform=="darwin": + root.resizable(False,False) + else: + root.resizable(True,True) + root.bind("", on_resize) global using_gui_launcher using_gui_launcher = True