Skip to content

Commit

Permalink
update warning for missing folder (make non-hidable in MA)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed May 17, 2024
1 parent 2453ddf commit 23d03ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/modAssist_func_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ const processor = {
defaultId : 0,
message : thisMessage,
title : serveIPC.__('bad_folder_title'),
type : 'question',
type : 'warning',

buttons : [
serveIPC.__('bad_folder_action_delete'),
Expand Down
3 changes: 1 addition & 2 deletions renderer/renderJS/main_ui_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,12 @@ const mainLib = {
window.mods.reorderAlpha()
},
setItemOrder : (collectKey, moveUpInList, forceLast = false) => {
fsgUtil.clearTooltipsWX()
const curIndex = mainState.collectOrder.map[collectKey]
const newIndex = forceLast ?
moveUpInList ? 0 : mainState.collectOrder.max :
moveUpInList ? mainLib.getOrderPrev(collectKey) : mainLib.getOrderNext(collectKey)

fsgUtil.clearTooltipsXX()

if ( curIndex !== null && newIndex !== null ) {
mainState.lastFolderScroll = fsgUtil.byId('mod-collections').offsetParent.scrollTop
window.mods.reorderFolder(curIndex, newIndex)
Expand Down
1 change: 1 addition & 0 deletions renderer/renderJS/util/general_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ const fsgUtil = {
},

clearTooltips : () => { for ( const tooltip of fsgUtil.query('.tooltip') ) { tooltip?.hide?.() } },
clearTooltipsWX : () => { setTimeout(fsgUtil.clearTooltipsXX, 250) },
clearTooltipsXX : () => { for ( const tooltip of fsgUtil.query('.tooltip') ) { tooltip?.hide?.() } },
setTheme : (theme) => { document.body.setAttribute('data-bs-theme', theme) },
windowCheckAll : () => { fsgUtil.windowCheckOp(true) },
Expand Down

0 comments on commit 23d03ca

Please sign in to comment.