Skip to content

Commit

Permalink
show warning message before formating disk
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedamarnah committed Mar 20, 2021
1 parent 461d8c9 commit 16bd6cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WoeUSB/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ def on_refresh(self, __):

def on_install(self, __):
global woe
if wx.MessageBox(
_("Are you sure? This will delete all your files and wipe out the selected partition."),
_("Cancel"),
wx.YES_NO | wx.ICON_QUESTION,
self) == wx.NO:
return
if self.is_install_ok():
is_iso = self.__isoChoice.GetValue()

Expand Down

0 comments on commit 16bd6cd

Please sign in to comment.