Advertisement
FlipelyFlip

FFS - Prevent Autosave Delete

Aug 25th, 2024
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.35 KB | None | 0 0
  1. class Window_FileAction < Window_HorzCommand
  2.   #--------------------------------------------------------------------------
  3.   # delete_enabled?
  4.   #--------------------------------------------------------------------------
  5.   def delete_enabled?
  6.     return false if @header.nil?
  7.     return false if @file_window.index == 0
  8.     return true
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement