mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
No need to save or revert when nothing changes.
This commit is contained in:
parent
e877a142d2
commit
d0dbd5312a
@ -26,7 +26,8 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
|
||||
showFirstRun()
|
||||
|
||||
$rootScope.revertOptions = ->
|
||||
$window.location.reload()
|
||||
if $rootScope.optionsDirty
|
||||
$window.location.reload()
|
||||
|
||||
$rootScope.exportScript = (name) ->
|
||||
getProfileName =
|
||||
@ -85,6 +86,7 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
|
||||
return true
|
||||
|
||||
$rootScope.applyOptions = ->
|
||||
return unless $rootScope.optionsDirty
|
||||
return unless checkFormValid()
|
||||
return if $rootScope.$broadcast('omegaApplyOptions').defaultPrevented
|
||||
plainOptions = angular.fromJson(angular.toJson($rootScope.options))
|
||||
|
Loading…
Reference in New Issue
Block a user