top and left are blank by default

This commit is contained in:
mic 2026-03-03 21:25:35 +01:00
parent 79712957a3
commit 60d4425f9b
2 changed files with 3 additions and 3 deletions

View file

@ -804,7 +804,7 @@ function applyWindowPositionAndSize(win_options, prefs){
win_options.height = prefs.chatgpt_win_height; win_options.height = prefs.chatgpt_win_height;
taLog.log("Applying saved window dimensions: width=" + prefs.chatgpt_win_width + ", height=" + prefs.chatgpt_win_height); taLog.log("Applying saved window dimensions: width=" + prefs.chatgpt_win_width + ", height=" + prefs.chatgpt_win_height);
} }
if(prefs.chatgpt_win_save_position && (prefs.chatgpt_win_top != 0) && (prefs.chatgpt_win_left != 0)){ if(prefs.chatgpt_win_save_position && (prefs.chatgpt_win_top != '') && (prefs.chatgpt_win_left != '')){
win_options.top = prefs.chatgpt_win_top; win_options.top = prefs.chatgpt_win_top;
win_options.left = prefs.chatgpt_win_left; win_options.left = prefs.chatgpt_win_left;
taLog.log("Applying saved window position: top=" + prefs.chatgpt_win_top + ", left=" + prefs.chatgpt_win_left); taLog.log("Applying saved window position: top=" + prefs.chatgpt_win_top + ", left=" + prefs.chatgpt_win_left);

View file

@ -99,8 +99,8 @@ export const prefs_default = {
do_debug: false, do_debug: false,
chatgpt_win_height: 800, chatgpt_win_height: 800,
chatgpt_win_width: 700, chatgpt_win_width: 700,
chatgpt_win_top: 0, chatgpt_win_top: '',
chatgpt_win_left: 0, chatgpt_win_left: '',
chatgpt_win_save_position: true, chatgpt_win_save_position: true,
default_chatgpt_lang: '', default_chatgpt_lang: '',
default_sign_name: '', default_sign_name: '',