Skip to content

Commit

Permalink
Do not enable accept market ssa by default
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Oct 26, 2024
1 parent ecac7aa commit 03f4a34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h3 data-msg="options_header_enhancements"></h3>
<div data-msg="options_enhancement_no_linkfilter"></div>
</label>
<label class="checkbox">
<input type="checkbox" class="option-check" data-option="enhancement-market-ssa" checked>
<input type="checkbox" class="option-check" data-option="enhancement-market-ssa">
<div data-msg="options_enhancement_market_ssa"></div>
</label>
<label class="checkbox">
Expand Down
3 changes: 2 additions & 1 deletion scripts/community/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@
window.SellCurrentSelection();

document.getElementById( 'market_sell_currency_input' ).value = this.dataset.price / 100;
document.getElementById( 'market_sell_dialog_accept_ssa' ).checked = true;

window.SellItemDialog.OnInputKeyUp( null ); // Recalculate prices
window.SellItemDialog.OnAccept( dummySellEvent );

if( options[ 'enhancement-inventory-quick-sell-auto' ] )
{
document.getElementById( 'market_sell_dialog_accept_ssa' ).checked = true;

window.SellItemDialog.OnConfirmationAccept( dummySellEvent );
}
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/community/market_ssa.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

GetOption( { 'enhancement-market-ssa': true }, ( items ) =>
GetOption( { 'enhancement-market-ssa': false }, ( items ) =>
{
if( items[ 'enhancement-market-ssa' ] )
{
Expand Down

0 comments on commit 03f4a34

Please sign in to comment.