@@ -296,6 +296,41 @@ def floating_window_topmost_mode_combo_box_changed(self, index):
296296 "floating_window_management" , "floating_window_topmost_mode"
297297 )
298298 )
299+ if previous_index == 2 and index != 2 :
300+ dialog = MessageBox (
301+ get_content_name_async (
302+ "floating_window_management" , "uia_topmost_restart_dialog_title"
303+ ),
304+ get_content_name_async (
305+ "floating_window_management" ,
306+ "uia_topmost_disable_restart_dialog_content" ,
307+ ),
308+ self .window (),
309+ )
310+ dialog .yesButton .setText (
311+ get_content_name_async (
312+ "floating_window_management" ,
313+ "uia_topmost_disable_restart_dialog_ok_btn" ,
314+ )
315+ )
316+ dialog .cancelButton .setText (
317+ get_content_name_async (
318+ "floating_window_management" ,
319+ "uia_topmost_restart_dialog_cancel_btn" ,
320+ )
321+ )
322+ if dialog .exec ():
323+ update_settings (
324+ "floating_window_management" , "floating_window_topmost_mode" , index
325+ )
326+ else :
327+ blocker = QSignalBlocker (self .floating_window_topmost_mode_combo_box )
328+ self .floating_window_topmost_mode_combo_box .setCurrentIndex (
329+ previous_index
330+ )
331+ del blocker
332+ return
333+
299334 if index == 2 and previous_index != 2 :
300335 dialog = MessageBox (
301336 get_content_name_async (
0 commit comments