Refactor saveMode handling to use enums instead of ints

Authored by rkflx on Feb 11 2018, 6:21 PM.

Description

Refactor saveMode handling to use enums instead of ints

Summary:
Things like case 0 make it really hard to work with the code and
having access to the current state of the Save button is needed
for a subsequent patch.

Test Plan: Spectacle still remembers the last used save state, defaults work too.

Reviewers: Spectacle, ngraham

Reviewed By: Spectacle, ngraham

Subscribers: ngraham

Differential Revision: https://phabricator.kde.org/D10467

Details

Committed
rkflxFeb 14 2018, 10:25 PM
Reviewer
Spectacle
Differential Revision
D10467: Refactor saveMode handling to use enums instead of ints
Parents
R166:6742051c6bf5: Fix drag-and-drop to Chromium
Branches
Unknown
Tags
Unknown