mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
disable ui resize on macos
This commit is contained in:
parent
1db3421c52
commit
2cbf39cba2
1 changed files with 5 additions and 2 deletions
|
@ -1556,7 +1556,6 @@ def show_new_gui():
|
||||||
root = ctk.CTk()
|
root = ctk.CTk()
|
||||||
root.geometry(str(windowwidth) + "x" + str(windowheight))
|
root.geometry(str(windowwidth) + "x" + str(windowheight))
|
||||||
root.title("KoboldCpp v"+KcppVersion)
|
root.title("KoboldCpp v"+KcppVersion)
|
||||||
root.resizable(True,True)
|
|
||||||
|
|
||||||
gtooltip_box = None
|
gtooltip_box = None
|
||||||
gtooltip_label = None
|
gtooltip_label = None
|
||||||
|
@ -1593,7 +1592,11 @@ def show_new_gui():
|
||||||
root.geometry(str(windowwidth) + "x" + str(windowheight) + str(lastpos))
|
root.geometry(str(windowwidth) + "x" + str(windowheight) + str(lastpos))
|
||||||
ctk.set_widget_scaling(smallratio)
|
ctk.set_widget_scaling(smallratio)
|
||||||
|
|
||||||
root.bind("<Configure>", on_resize)
|
if sys.platform=="darwin":
|
||||||
|
root.resizable(False,False)
|
||||||
|
else:
|
||||||
|
root.resizable(True,True)
|
||||||
|
root.bind("<Configure>", on_resize)
|
||||||
global using_gui_launcher
|
global using_gui_launcher
|
||||||
using_gui_launcher = True
|
using_gui_launcher = True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue