Skip to content

Commit

Permalink
real simple proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger authored and mvidner committed Jan 25, 2017
1 parent efbfe7d commit 30359ca
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/clients/partitions_proposal.rb
Expand Up @@ -30,6 +30,10 @@
# See also file proposal-API.txt for details.
module Yast
class PartitionsProposalClient < Client
class << self
attr_accessor :modified
end

def main
textdomain "storage"

Expand Down Expand Up @@ -110,12 +114,13 @@ def main
end

if @param["simple_mode"]
item = if rand > 0.5
# A standard configuration
_("Standard")
else
self.class.modified = false if self.class.modified.nil?
item = if self.class.modified
# A custom configuration
_("Custom")
else
# A standard configuration
_("Standard")
end
@ret["label_proposal"] = [item]
end
Expand Down Expand Up @@ -219,6 +224,7 @@ def main

# Fill return map
Storage.HandleProposalPackages
self.class.modified = true if @result == :next
@ret = { "workflow_sequence" => @result }
elsif @func == "Description"
# Fill return map.
Expand Down

0 comments on commit 30359ca

Please sign in to comment.