mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Warn before running executable files.
This commit is contained in:
@@ -232,3 +232,27 @@ private:
|
||||
int _userWidth = 0;
|
||||
|
||||
};
|
||||
|
||||
class ConfirmDontWarnBox : public BoxContent {
|
||||
public:
|
||||
ConfirmDontWarnBox(
|
||||
QWidget*,
|
||||
const QString &text,
|
||||
const QString &checkbox,
|
||||
const QString &confirm,
|
||||
FnMut<void(bool)> callback);
|
||||
|
||||
protected:
|
||||
void prepare() override;
|
||||
|
||||
private:
|
||||
not_null<Ui::RpWidget*> setupContent(
|
||||
const QString &text,
|
||||
const QString &checkbox,
|
||||
FnMut<void(bool)> callback);
|
||||
|
||||
QString _confirm;
|
||||
FnMut<void()> _callback;
|
||||
not_null<Ui::RpWidget*> _content;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user