Prevents nanoui from flickering when opened in fancy mode

This commit is contained in:
actioninja
2019-10-23 01:24:32 -07:00
parent 22078ace9a
commit d574b521b6
+5
View File
@@ -416,6 +416,11 @@ nanoui is used to open and update nano browser uis
if(!initial_data)
set_initial_data(src_object.ui_data(user, ui_key, state)) // Get the UI data.
// Preset the can_rezie and titlebar values on uis if the user has fancy uis set
// Prevents the ui from flickering when opened
if(user.client.prefs.nanoui_fancy)
set_window_options("focus=0;can_close=1;can_minimize=1;can_maximize=0;can_resize=0;titlebar=0;")
user << browse(get_html(), "window=[window_id];[window_size][window_options]")
winset(user, "mapwindow.map", "focus=true") // return keyboard focus to map
on_close_winset()